diff --git a/public/src/forum/login.js b/public/src/forum/login.js index 74bedd54ba..7b475c566b 100644 --- a/public/src/forum/login.js +++ b/public/src/forum/login.js @@ -27,7 +27,7 @@ data: loginData, success: function(data, textStatus, jqXHR) { if(!data.success) { - $('#login-error-notify').html(data.message).show(); + $('#login-error-notify').show(); } else { $('#login-error-notify').hide(); window.location.replace(RELATIVE_PATH + "/?loggedin"); @@ -44,5 +44,10 @@ return false; }); + $('#login-error-notify button').on('click', function() { + $('#login-error-notify').hide(); + return false; + }); + document.querySelector('#content input').focus(); }()); diff --git a/public/templates/login.tpl b/public/templates/login.tpl index e8e85b9235..4298194ee5 100644 --- a/public/templates/login.tpl +++ b/public/templates/login.tpl @@ -11,7 +11,7 @@