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