From 6cd72677f6947eb23817f96714d8b3f521d552ad Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Tue, 24 Oct 2006 11:38:33 +0000 Subject: [PATCH] added focus on first element with error --- course/edit2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5