/** * 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 ); } ); } }