mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
jump menu now always shows "Jump to", see http://moodle.org/mod/forum/discuss.php?d=8543#41211
This commit is contained in:
parent
6f9f3b693f
commit
cb6480373e
@ -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;
|
||||
@ -1884,7 +1886,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
|
||||
"<input type=\"submit\" value=\">\"></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>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user