]> git.mjollnir.org Git - moodle.git/commitdiff
Some logic for focussing cursor
authormoodler <moodler>
Mon, 24 Nov 2003 01:23:29 +0000 (01:23 +0000)
committermoodler <moodler>
Mon, 24 Nov 2003 01:23:29 +0000 (01:23 +0000)
course/mod.php

index a20d054fb44ac48b8d64d396491cf96cbba8ef7b..9dd6023a50d24f5ff107014a48c7ab6ef75645bc 100644 (file)
     $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",
                      "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> -> 
                       <A HREF=\"$CFG->wwwroot/mod/$module->name/index.php?id=$course->id\">$strmodulenameplural</A> -> 
-                      $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.