Controller: commentController, commentsListController Methods: commentController find(): Loads the comment info from local db or make the AJAX request to the server commentsListController editMode(): Sets the edit mode for writable fields cancel(): Sets the read mode for writable fields createComment(): Creates a new comment updateIssueComment(Object comment): Updates the specified comment showNewComment(String DOM_Object_id): Show input view for new comment cancelNewComment(String DOM_Object_id): Cancel new comment creation mode deleteComment(Object comment): Deletes the specified comment addComment(): Adds comment to the current object and returns a deferred object updateComment(Object comment): Updates the specified comment. |