|
|
@ -27,7 +27,7 @@
|
|
|
|
data: loginData,
|
|
|
|
data: loginData,
|
|
|
|
success: function(data, textStatus, jqXHR) {
|
|
|
|
success: function(data, textStatus, jqXHR) {
|
|
|
|
if(!data.success) {
|
|
|
|
if(!data.success) {
|
|
|
|
$('#login-error-notify').html(data.message).show();
|
|
|
|
$('#login-error-notify').show();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$('#login-error-notify').hide();
|
|
|
|
$('#login-error-notify').hide();
|
|
|
|
window.location.replace(RELATIVE_PATH + "/?loggedin");
|
|
|
|
window.location.replace(RELATIVE_PATH + "/?loggedin");
|
|
|
@ -44,5 +44,10 @@
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#login-error-notify button').on('click', function() {
|
|
|
|
|
|
|
|
$('#login-error-notify').hide();
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
document.querySelector('#content input').focus();
|
|
|
|
document.querySelector('#content input').focus();
|
|
|
|
}());
|
|
|
|
}());
|
|
|
|