This commit is contained in:
2018-01-11 08:54:51 +01:00
parent ce4945c697
commit e9ba38d67d
@@ -9,28 +9,28 @@
dbo.commentsDataService = {
getComments: function ( foreignID, tablename, callback ) {
$.getJSON( 'index.php/projects/commentscontroller/getComments/' + foreignID + '/' + tablename )
$.getJSON( 'index.php/projects/commentsController/getComments/' + foreignID + '/' + tablename )
.done( function ( data ) {
callback( data );
} );
},
getComment:function(commentID, callback){
$.getJSON( 'index.php/projects/commentscontroller/getComment/' + commentID )
$.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 )
$.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} )
$.post('index.php/projects/commentsController/saveComment/' + commentID, {comment:comment} )
.done(function(){
callback();
});