Implement comment deletion and loading indicator
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -66,6 +66,14 @@ var CommentModel = OC.Backbone.Model.extend(
|
||||
};
|
||||
},
|
||||
|
||||
url: function() {
|
||||
if (typeof this.get('id') !== 'undefined') {
|
||||
return this.collection.url() + this.get('id');
|
||||
} else {
|
||||
return this.collection.url();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
export default CommentModel;
|
||||
|
||||
Reference in New Issue
Block a user