ucase
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user