diff --git a/assets/js/components/comments/interface.js b/assets/js/components/comments/interface.js index 47f9d985..6774bddb 100644 --- a/assets/js/components/comments/interface.js +++ b/assets/js/components/comments/interface.js @@ -6,6 +6,25 @@ ComunicWeb.components.comments.interface = { + /** + * Get informations about a single comment + * + * @param {number} commentID The ID of the comment to get + * @param {function} callback + */ + get_single: function(commentID, callback) { + + //Perform a request on the API + var apiURI = "comments/get_single"; + var params = { + commentID: commentID + }; + + //Make the request + ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback); + + }, + /** * Update a comment content *