offer fileupload and comments

This commit is contained in:
2018-01-10 21:09:08 +01:00
parent 6366bbc6a8
commit 665242eb4a
270 changed files with 35840 additions and 17 deletions
@@ -0,0 +1,40 @@
/**
* Created by Pensare Software.
* User: Theo Weijmer
* Date: 10/01/2018
* Time: 14:18
*/
dbo.commentsDataService = {
getComments: function ( foreignID, tablename, callback ) {
$.getJSON( 'index.php/projects/commentscontroller/getComments/' + foreignID + '/' + tablename )
.done( function ( data ) {
callback( data );
} );
},
getComment:function(commentID, callback){
$.getJSON( 'index.php/projects/commentscontroller/getComment/' + commentID )
.done( function ( data ) {
callback( data );
} );
},
addComment: function ( foreignID, tablename, callback ) {
$.getJSON( 'index.php/projects/commentscontroller/addcomment/' + foreignID + '/' + tablename )
.done( function (data) {
callback(data);
} );
},
saveComment:function(commentID, comment, callback){
$.post('index.php/projects/commentscontroller/savecomment/' + commentID, {comment:comment} )
.done(function(){
callback();
});
}
}
@@ -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 );
} );
}
}