|
|
@ -47,7 +47,6 @@ define(function() {
|
|
|
|
|
|
|
|
|
|
|
|
$('#user-notfound-notify').html('<i class="fa fa-spinner fa-spin"></i>');
|
|
|
|
$('#user-notfound-notify').html('<i class="fa fa-spinner fa-spin"></i>');
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
|
|
|
socket.emit('user.search', username, function(err, data) {
|
|
|
|
socket.emit('user.search', username, function(err, data) {
|
|
|
|
if(err) {
|
|
|
|
if(err) {
|
|
|
|
return app.alert(err.message);
|
|
|
|
return app.alert(err.message);
|
|
|
@ -76,7 +75,6 @@ define(function() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, 500); //replace this with global throttling function/constant
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, 250);
|
|
|
|
}, 250);
|
|
|
|
});
|
|
|
|
});
|
|
|
|