mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
changed most of the ajax calls to use sockets
This commit is contained in:
@@ -26,13 +26,9 @@
|
||||
}
|
||||
|
||||
followBtn.on('click', function() {
|
||||
|
||||
$.post('/users/follow', {uid: theirid, _csrf:$('#csrf_token').val()},
|
||||
function(data) {
|
||||
followBtn.remove();
|
||||
$('#user-action-alert').html('You are now following'+ $('.account-username').text() +'!').show();
|
||||
}
|
||||
);
|
||||
|
||||
followBtn.remove();
|
||||
socket.emit('api:user.follow', {uid: theirid});
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user