This commit is contained in:
gustav_delius 2004-06-09 08:46:43 +00:00
parent 6f9f3b693f
commit cb6480373e

View File

@ -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=\"&gt;\"></form>"; "<input type=\"submit\" value=\"&gt;\"></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>";
} }