From e651769134351ddeb57603b603cd5823643a94a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 15 Mar 2023 14:37:54 +0100 Subject: [PATCH] change/remove comments in code --- view/theme/frio/js/theme.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 3ae76dbf55..9196858bb7 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -781,7 +781,7 @@ function doActivityItemAction(ident, verb, un) { // remove share-symbol, to replace it by rotator $('button[id^=shareMenuOptions-' + ident.toString() + '] i:first-child').removeClass('fa-share'); $('button[id^=announce-' + ident.toString() + '] i:first-child').removeClass('fa-retweet'); - // if no wait-rotator for activity(verb) is added, add it. or just show it, if exists + // avoid multiple rotators on like/share-button if klicked multiple times. if ($('img[id^=waitfor-' + verb + '-' + ident.toString() + ']').length == 0) { // append rotator to the shareMenu-button for small media $('') @@ -798,12 +798,10 @@ function doActivityItemAction(ident, verb, un) { .addClass('fa') .appendTo($('button[id^=' + verb + '-' + ident.toString() + '] i:first-child')); } - // do request for activity $.post('item/' + ident.toString() + '/activity/' + _verb) .success(function(data){ $('img[id^=waitfor-' + verb + '-' + ident.toString() + ']').remove(); if (data.status == 'ok') { - // response from server was ok if (data.verb == 'un' + verb) { // like/dislike buttons $('button[id^=' + verb + '-' + ident.toString() + ']' )