Skip to content

Commit

Permalink
jump menu now always shows "Jump to", see http://moodle.org/mod/forum…
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Jun 9, 2004
1 parent 6f9f3b6 commit cb64803
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/weblib.php
Expand Up @@ -1855,13 +1855,15 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
$selectmod = $mod;
$backmod = $previousmod;
$flag = true; // set flag so we know to use next mod for "next"
}
$mod->name = strip_tags(urldecode($mod->name));
if (strlen($mod->name) > 55) {
$mod->name = substr($mod->name, 0, 50)."...";
}
if (!$mod->visible) {
$mod->name = "(".$mod->name.")";
$mod->name = get_string('jumpto');
} else {
$mod->name = strip_tags(urldecode($mod->name));
if (strlen($mod->name) > 55) {
$mod->name = substr($mod->name, 0, 50)."...";
}
if (!$mod->visible) {
$mod->name = "(".$mod->name.")";
}
}
$menu[$url] = $mod->name;
$previousmod = $mod;
Expand All @@ -1884,7 +1886,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
"<input type=\"submit\" value=\"&gt;\"></form>";
}
return "<table><tr>$logslink<td>$backmod</td><td>" .
popup_form("$CFG->wwwroot/mod/", $menu, "navmenu", $selected, get_string("jumpto"),
popup_form("$CFG->wwwroot/mod/", $menu, "navmenu", $selected, '',
"", "", true, $targetwindow).
"</td><td>$nextmod</td></tr></table>";
}
Expand Down

0 comments on commit cb64803

Please sign in to comment.