mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
remvoed the timeout on the login call
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
define(function() {
|
define(function() {
|
||||||
var Login = {};
|
var Login = {};
|
||||||
|
|
||||||
Login.init = function() {
|
Login.init = function() {
|
||||||
$('#login').on('click', function() {
|
$('#login').on('click', function() {
|
||||||
var loginData = {
|
var loginData = {
|
||||||
'username': $('#username').val(),
|
'username': $('#username').val(),
|
||||||
@@ -40,8 +40,7 @@ define(function() {
|
|||||||
$('#login').removeAttr('disabled').html('Login');
|
$('#login').removeAttr('disabled').html('Login');
|
||||||
},
|
},
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
async: true,
|
async: true
|
||||||
timeout: 2000
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user