mirror of
https://github.com/moodle/moodle.git
synced 2025-07-23 15:22:05 +02:00
MDL-35817 Login: set page focus to error message for login error
This commit is contained in:
@@ -854,6 +854,16 @@ 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');
|
||||
|
||||
if (errorlog) {
|
||||
errorlog.focus();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Adds lightbox hidden element that covers the whole node.
|
||||
*
|
||||
|
Reference in New Issue
Block a user