From: jamiesensei Date: Tue, 24 Oct 2006 11:38:33 +0000 (+0000) Subject: added focus on first element with error X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6cd72677f6947eb23817f96714d8b3f521d552ad;p=moodle.git added focus on first element with error --- diff --git a/course/edit2.php b/course/edit2.php index d48046217b..fd8492986d 100644 --- a/course/edit2.php +++ b/course/edit2.php @@ -97,11 +97,11 @@ if (!empty($course)) { if (!empty($course)) { print_header($streditcoursesettings, "$course->fullname", "wwwroot/course/view.php?id=$course->id\">$course->shortname - -> $streditcoursesettings"); + -> $streditcoursesettings", $editform->focus()); } else { print_header("$site->shortname: $straddnewcourse", "$site->fullname", "wwwroot/$CFG->admin/index.php\">$stradministration -> ". - "$strcategories -> $straddnewcourse"); + "$strcategories -> $straddnewcourse", $editform->focus()); } print_heading($streditcoursesettings);