Users ready
This commit is contained in:
@@ -26,14 +26,29 @@ dbo.userDataService = {
|
||||
.done( function ( data ) {
|
||||
console.log( data );
|
||||
callback( data );
|
||||
} )
|
||||
} );
|
||||
},
|
||||
|
||||
saveUser: function ( submitDATA, callback ) {
|
||||
$.post( 'index.php/beheer/usersController/saveUser', submitDATA, 'json' )
|
||||
$.post( 'index.php/beheer/usersController/saveUser', submitDATA, function () {
|
||||
}, 'json' )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} )
|
||||
} );
|
||||
},
|
||||
|
||||
archiveUser: function(userID, status, callback){
|
||||
$.get('index.php/beheer/usersController/archiveUser/' + userID + '/' + status)
|
||||
.done(function(){
|
||||
callback();
|
||||
});
|
||||
},
|
||||
|
||||
removeUser: function ( userID, callback ) {
|
||||
$.getJSON( 'index.php/beheer/usersController/removeUser/' + userID )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user