diff --git a/public/src/forum/login.js b/public/src/forum/login.js index 2be3b5e701..74bedd54ba 100644 --- a/public/src/forum/login.js +++ b/public/src/forum/login.js @@ -12,16 +12,15 @@ if (target) { document.location.href = target.getAttribute('data-url'); } - }); - + }); + $('#login').on('click', function() { - var loginData = { 'username': $('#username').val(), 'password': $('#password').val(), '_csrf': $('#csrf-token').val() }; - + $.ajax({ type: "POST", url: RELATIVE_PATH + '/login', @@ -44,5 +43,6 @@ return false; }); - + + document.querySelector('#content input').focus(); }());