Skip to content

Commit

Permalink
[#484 status:resolved] Updated the help URL to point to the wiki. Sim…
Browse files Browse the repository at this point in the history
…plified the JS logic that gives context-specific help because Melody doesn't have thorough docs yet.
  • Loading branch information
danwolfgang committed Nov 1, 2010
1 parent f1131fd commit d5ce958
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/MT.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3197,7 +3197,7 @@ sub help_url {

my $url = $pkg->config->HelpURL;
return $url if defined $url;
$url = $pkg->translate('http://www.movabletype.org/documentation/');
$url = $pkg->translate('http://github.com/openmelody/melody/wiki/');
if ( $append ) {
$url .= $append;
}
Expand Down
15 changes: 9 additions & 6 deletions mt-static/mt.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ function doRebuild (blogID, otherParams) {

function openManual (section, page) {
var url;
if (page)
url = HelpBaseURI + 'help/' + section + '/' + page + '/';
else if (section)
url = HelpBaseURI + 'help/' + section + '/';
else
url = HelpBaseURI + 'help/';
//if (page)
// url = HelpBaseURI + 'help/' + section + '/' + page + '/';
//else if (section)
// url = HelpBaseURI + 'help/' + section + '/';
//else
// url = HelpBaseURI + 'help/';
// Because we don't have a complete set of docs ready, just point the
// user to the root of the documentation project.
url = HelpBaseURI;
window.open(url, 'mt_help',
'scrollbars=yes,status=yes,resizable=yes,toolbar=yes,location=yes,menubar=yes');
return false;
Expand Down

0 comments on commit d5ce958

Please sign in to comment.