From 0b5d3ddfb9a9eb5c453cd7dbead59852e8f9099a Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 24 Nov 2003 01:23:29 +0000 Subject: [PATCH] Some logic for focussing cursor --- course/mod.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/course/mod.php b/course/mod.php index a20d054fb4..9dd6023a50 100644 --- a/course/mod.php +++ b/course/mod.php @@ -470,14 +470,20 @@ $streditinga = get_string("editinga", "moodle", $fullmodulename); $strmodulenameplural = get_string("modulenameplural", $module->name); + if ($module->name == "label") { + $focuscursor = ""; + } else { + $focuscursor = "form.name"; + } + if ($course->category) { print_header("$course->shortname: $streditinga", "$course->fullname", "wwwroot/course/view.php?id=$course->id\">$course->shortname -> wwwroot/mod/$module->name/index.php?id=$course->id\">$strmodulenameplural -> - $streditinga", "form.name", "", false); + $streditinga", $focuscursor, "", false); } else { print_header("$course->shortname: $streditinga", "$course->fullname", - "$streditinga", "form.name", "", false); + "$streditinga", $focuscursor, "", false); } unset($SESSION->modform); // Clear any old ones that may be hanging around. -- 2.39.5