From: xundeenergie Date: Sat, 11 Mar 2023 12:11:48 +0000 (+0100) Subject: Update view/theme/frio/js/theme.js X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=225e2124cc3a325b4188b8569a0a479fabf83987;p=friendica.git Update view/theme/frio/js/theme.js in this case, the img[id^=waitfor... .show() shows existing image-containers. All of them which exist. Because there can be more than one. And this filter just shows them. adding another rotator with your suggestion can lead to 2 or more rotators on a button. Co-authored-by: Hypolite Petovan --- diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index f40c8d3069..a1501f1381 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -791,7 +791,7 @@ function doActivityItemAction(ident, verb, un) { .addClass('fa') .appendTo($('button[id^=shareMenuOptions-' + ident.toString() + '] i:first-child' )).show(); } else { - $('img[id^=waitfor-' + verb + '-' + ident.toString() + ']').show() + $('').attr({id: 'waitfor-' + verb + '-' + ident.toString(), src: 'images/rotator.gif'}) } } $('button[id^=' + verb + '-' + ident.toString() + '] i:first-child').removeClass(thumbsClass);