this is the code I use to call the plugin.
$("#comment_section").comments({
getCommentsUrl: "../api/comment/" + aData.ID + "/" + sitepart + "/Depend/000",
postCommentUrl: "../api/comment",
deleteCommentUrl: "../api/comment",
displayAvatar: true
})
functionality would be to open a modal window and add comments. An icon added to task list with the number of comments beside it.
I have implemented this plugin on my PPM system http://jqcomment.herokuapp.com/ using an api to read / insert comments
this is the code I use to call the plugin. $("#comment_section").comments({ getCommentsUrl: "../api/comment/" + aData.ID + "/" + sitepart + "/Depend/000", postCommentUrl: "../api/comment", deleteCommentUrl: "../api/comment", displayAvatar: true })
functionality would be to open a modal window and add comments. An icon added to task list with the number of comments beside it.
get json example
[{"Id":22,"Author":"Greg Vandeligt","Comment":"hjkhjkhjkhkj","UserAvatar":null,"Date":"2015-02-15T17:14:00","ParentId":null,"CanDelete":false,"CanReply":true,"PartitNo":null,"vKey":null,"dtype":null,"ProjectRef":null,"ActionID":null,"UserID":null},{"Id":23,"Author":"Greg Vandeligt","Comment":"hjkhkjhkjhjkhjk","UserAvatar":null,"Date":"2015-02-15T17:15:00","ParentId":null,"CanDelete":false,"CanReply":true,"PartitNo":null,"vKey":null,"dtype":null,"ProjectRef":null,"ActionID":null,"UserID":null},{"Id":30,"Author":"Greg Vandeligt","Comment":"testing","UserAvatar":null,"Date":"2015-02-16T12:22:00","ParentId":23,"CanDelete":false,"CanReply":true,"PartitNo":null,"vKey":null,"dtype":null,"ProjectRef":null,"ActionID":null,"UserID":null}]