This commit is contained in:
barisusakli
2016-05-03 19:13:10 +03:00
parent c758f59014
commit cef7fb545b
5 changed files with 58 additions and 15 deletions

View File

@@ -45,7 +45,12 @@ define('forum/login', ['csrf', 'translator'], function(csrf, translator) {
return false;
});
$('#content #username').focus();
if ($('#content #username').attr('readonly')) {
$('#content #password').focus();
} else {
$('#content #username').focus();
}
// Add "returnTo" data if present
if (app.previousUrl) {