Permalink
Browse files

MDL-35817 login: convert html tag to use html_writer and change <a> t…

…ag id to be more specific to login
  • Loading branch information...
1 parent c316c39 commit a170cdf4a47d827855c11fce0c1445a288a2f9d9 @rwijaya rwijaya committed Jan 17, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/javascript-static.js
  2. +3 −3 login/index_form.html
@@ -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();
@@ -30,10 +30,10 @@
</div>
<?php
if (!empty($errormsg)) {
- echo '<div class="loginerrors">';
- echo '<a id="errormsg" class="accesshide" href="#">'.$OUTPUT->error_text($errormsg).'</a>';
+ 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 '</div>';
+ echo html_writer::end_tag('div');
}
?>
<form action="<?php echo $CFG->httpswwwroot; ?>/login/index.php" method="post" id="login" <?php echo $autocomplete; ?> >

0 comments on commit a170cdf

Please sign in to comment.