From 6b519ea6ccd6597e425b04568e075fdbba0788f8 Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Thu, 17 Jan 2013 13:01:27 +0800 Subject: [PATCH] MDL-35817 login: convert html tag to use html_writer and change tag id to be more specific to login --- lib/javascript-static.js | 2 +- login/index_form.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/javascript-static.js b/lib/javascript-static.js index 3c0d900408b..2a5712e5427 100644 --- a/lib/javascript-static.js +++ b/lib/javascript-static.js @@ -858,7 +858,7 @@ M.util.focus_login_form = function(Y) { * Set focus on login error message */ M.util.focus_login_error = function(Y) { - var errorlog = Y.one('#errormsg'); + var errorlog = Y.one('#loginerrormessage'); if (errorlog) { errorlog.focus(); diff --git a/login/index_form.html b/login/index_form.html index 8ec496cb645..c5f75e826d1 100644 --- a/login/index_form.html +++ b/login/index_form.html @@ -30,10 +30,10 @@ if (!empty($CFG->loginpasswordautocomplete)) { '; - echo ''.$OUTPUT->error_text($errormsg).''; + echo html_writer::start_tag('div', array('class' => 'loginerrors')); + echo html_writer::link('#', $errormsg, array('id' => 'loginerrormessage', 'class' => 'accesshide')); echo $OUTPUT->error_text($errormsg); - echo ''; + echo html_writer::end_tag('div'); } ?>
>