offer fileupload and comments
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* 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 );
|
||||
} );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user