ucase
This commit is contained in:
@@ -9,28 +9,28 @@
|
|||||||
dbo.commentsDataService = {
|
dbo.commentsDataService = {
|
||||||
|
|
||||||
getComments: function ( foreignID, tablename, callback ) {
|
getComments: function ( foreignID, tablename, callback ) {
|
||||||
$.getJSON( 'index.php/projects/commentscontroller/getComments/' + foreignID + '/' + tablename )
|
$.getJSON( 'index.php/projects/commentsController/getComments/' + foreignID + '/' + tablename )
|
||||||
.done( function ( data ) {
|
.done( function ( data ) {
|
||||||
callback( data );
|
callback( data );
|
||||||
} );
|
} );
|
||||||
},
|
},
|
||||||
|
|
||||||
getComment:function(commentID, callback){
|
getComment:function(commentID, callback){
|
||||||
$.getJSON( 'index.php/projects/commentscontroller/getComment/' + commentID )
|
$.getJSON( 'index.php/projects/commentsController/getComment/' + commentID )
|
||||||
.done( function ( data ) {
|
.done( function ( data ) {
|
||||||
callback( data );
|
callback( data );
|
||||||
} );
|
} );
|
||||||
},
|
},
|
||||||
|
|
||||||
addComment: function ( foreignID, tablename, callback ) {
|
addComment: function ( foreignID, tablename, callback ) {
|
||||||
$.getJSON( 'index.php/projects/commentscontroller/addcomment/' + foreignID + '/' + tablename )
|
$.getJSON( 'index.php/projects/commentsController/addComment/' + foreignID + '/' + tablename )
|
||||||
.done( function (data) {
|
.done( function (data) {
|
||||||
callback(data);
|
callback(data);
|
||||||
} );
|
} );
|
||||||
},
|
},
|
||||||
|
|
||||||
saveComment:function(commentID, comment, callback){
|
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(){
|
.done(function(){
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user