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 <hypolite@mrpetovan.com>
This commit is contained in:
xundeenergie 2023-03-11 13:11:48 +01:00 committed by Jakobus Schürz
parent 82e8b5b76d
commit 225e2124cc
1 changed files with 1 additions and 1 deletions

View File

@ -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()
$('<img>').attr({id: 'waitfor-' + verb + '-' + ident.toString(), src: 'images/rotator.gif'})
}
}
$('button[id^=' + verb + '-' + ident.toString() + '] i:first-child').removeClass(thumbsClass);