Rename dolike to doActivityItem

This commit is contained in:
Hypolite Petovan 2021-01-30 16:42:34 -05:00
commit 3a18669730
14 changed files with 54 additions and 54 deletions

View file

@ -774,13 +774,13 @@ function htmlToText(htmlString) {
* @param {string} verb The verb of the action
* @param {boolean} un Whether to perform an activity removal instead of creation
*/
function doLikeAction(ident, verb, un) {
function doActivityItemAction(ident, verb, un) {
if (verb.indexOf("attend") === 0) {
$(".item-" + ident + " .button-event:not(#" + verb + "-" + ident + ")").removeClass("active");
}
$("#" + verb + "-" + ident).toggleClass("active");
dolike(ident, verb, un);
doActivityItem(ident, verb, un);
}
// Decodes a hexadecimally encoded binary string