mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
changed most of the ajax calls to use sockets
This commit is contained in:
@@ -82,17 +82,10 @@ $(document).ready(function() {
|
||||
|
||||
function changeUserPicture(type) {
|
||||
var userData = {
|
||||
uid: $('#inputUID').val(),
|
||||
type: type,
|
||||
_csrf:$('#csrf_token').val()
|
||||
type: type
|
||||
};
|
||||
|
||||
$.post('/users/changepicture',
|
||||
userData,
|
||||
function(data) {
|
||||
socket.emit('api:updateHeader', { fields: ['username', 'picture', 'userslug'] });
|
||||
}
|
||||
);
|
||||
socket.emit('api:user.changePicture', userData);
|
||||
}
|
||||
|
||||
var selectedImageType = '';
|
||||
|
||||
Reference in New Issue
Block a user