Files
dbois/public/js/lib/dataservices/documentsDataservice.js
T
2018-01-10 21:09:08 +01:00

25 lines
637 B
JavaScript

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