mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
removed api: from client side socket calls
This commit is contained in:
@@ -47,7 +47,7 @@ define(function() {
|
||||
jQuery('#user-notfound-notify').html('<i class="fa fa-spinner fa-spin"></i>');
|
||||
|
||||
setTimeout(function() {
|
||||
socket.emit('api:admin.user.search', username, function(err, data) {
|
||||
socket.emit('admin.user.search', username, function(err, data) {
|
||||
if(err) {
|
||||
return app.alert(err.message);
|
||||
}
|
||||
@@ -80,10 +80,10 @@ define(function() {
|
||||
}, 250);
|
||||
});
|
||||
|
||||
socket.on('api:user.isOnline', function(data) {
|
||||
socket.on('user.isOnline', function(data) {
|
||||
if(getActiveSection() == 'online' && !loadingMoreUsers) {
|
||||
startLoading('users:online', 0, true);
|
||||
socket.emit('api:user.getOnlineAnonCount', {} , function(anonCount) {
|
||||
socket.emit('user.getOnlineAnonCount', {} , function(anonCount) {
|
||||
if(parseInt(anonCount, 10) > 0) {
|
||||
$('#users-container .anon-user').removeClass('hide');
|
||||
$('#online_anon_count').html(anonCount);
|
||||
@@ -123,7 +123,7 @@ define(function() {
|
||||
|
||||
function startLoading(set, after, emptyContainer) {
|
||||
loadingMoreUsers = true;
|
||||
socket.emit('api:user.loadMore', {
|
||||
socket.emit('user.loadMore', {
|
||||
set: set,
|
||||
after: after
|
||||
}, function(data) {
|
||||
|
||||
Reference in New Issue
Block a user