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;
|
$selectmod = $mod;
|
||||||
$backmod = $previousmod;
|
$backmod = $previousmod;
|
||||||
$flag = true; // set flag so we know to use next mod for "next"
|
$flag = true; // set flag so we know to use next mod for "next"
|
||||||
}
|
$mod->name = get_string('jumpto');
|
||||||
$mod->name = strip_tags(urldecode($mod->name));
|
} else {
|
||||||
if (strlen($mod->name) > 55) {
|
$mod->name = strip_tags(urldecode($mod->name));
|
||||||
$mod->name = substr($mod->name, 0, 50)."...";
|
if (strlen($mod->name) > 55) {
|
||||||
}
|
$mod->name = substr($mod->name, 0, 50)."...";
|
||||||
if (!$mod->visible) {
|
}
|
||||||
$mod->name = "(".$mod->name.")";
|
if (!$mod->visible) {
|
||||||
|
$mod->name = "(".$mod->name.")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$menu[$url] = $mod->name;
|
$menu[$url] = $mod->name;
|
||||||
$previousmod = $mod;
|
$previousmod = $mod;
|
||||||
@ -1884,7 +1886,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
|
|||||||
"<input type=\"submit\" value=\">\"></form>";
|
"<input type=\"submit\" value=\">\"></form>";
|
||||||
}
|
}
|
||||||
return "<table><tr>$logslink<td>$backmod</td><td>" .
|
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).
|
"", "", true, $targetwindow).
|
||||||
"</td><td>$nextmod</td></tr></table>";
|
"</td><td>$nextmod</td></tr></table>";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user