diversen nav opmerkingen

This commit is contained in:
2018-03-21 17:23:58 +01:00
parent 3241cc0c67
commit e89dc41e18
23 changed files with 404 additions and 154 deletions
+27 -11
View File
@@ -21,11 +21,25 @@ dbo.userDataService = {
} );
},
getUniqueProjectEmployees:function(callback){
$.post('index.php/beheer/usersController/getUniqueprojectEmployees', 'json')
.done(function(data){
callback(data);
});
getCurrentUser: function ( callback ) {
$.getJSON( 'index.php/beheer/usersController/getCurrentUser' )
.done( function ( data ) {
callback( data );
} );
},
getUserWithprojects: function ( callback ) {
$.getJSON( 'index.php/beheer/usersController/getUserWithprojects' )
.done( function ( data ) {
callback( data );
} );
},
getUniqueProjectEmployees: function ( callback ) {
$.post( 'index.php/beheer/usersController/getUniqueprojectEmployees', 'json' )
.done( function ( data ) {
callback( data );
} );
},
checkUsername: function ( username, callback ) {
@@ -44,11 +58,11 @@ dbo.userDataService = {
} );
},
archiveUser: function(userID, status, callback){
$.get('index.php/beheer/usersController/archiveUser/' + userID + '/' + status)
.done(function(){
archiveUser: function ( userID, status, callback ) {
$.get( 'index.php/beheer/usersController/archiveUser/' + userID + '/' + status )
.done( function () {
callback();
});
} );
},
removeUser: function ( userID, callback ) {
@@ -57,6 +71,8 @@ dbo.userDataService = {
callback( data );
} );
}
}
}
dbo.userDataService.getCurrentUser(function(data){
dbo.currentUser = data;
});