Files
dbois/public/js/lib/dataservices/documentsDataservice.js
2018-04-06 10:48:39 +02:00

25 lines
608 B
JavaScript

/**
* Created by Pensare Software.
* User: Theo Weijmer
* Date: 10/01/2018
* Time: 14:18
*/
dbo.documentsDataService = {
getdocuments: function ( foreignID, callback ) {
$.getJSON( 'index.php/projects/documentsController/getDocuments/' + foreignID )
.done( function ( data ) {
callback( data );
} );
},
removeDocument:function(documentID, callback){
$.getJSON( 'index.php/projects/documentsController/removeDocument/' + documentID )
.done( function ( data ) {
callback( data );
} );
}
}