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:
parent
82e8b5b76d
commit
225e2124cc
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,7 @@ function doActivityItemAction(ident, verb, un) {
|
||||||
.addClass('fa')
|
.addClass('fa')
|
||||||
.appendTo($('button[id^=shareMenuOptions-' + ident.toString() + '] i:first-child' )).show();
|
.appendTo($('button[id^=shareMenuOptions-' + ident.toString() + '] i:first-child' )).show();
|
||||||
} else {
|
} 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);
|
$('button[id^=' + verb + '-' + ident.toString() + '] i:first-child').removeClass(thumbsClass);
|
||||||
|
|
Loading…
Reference in a new issue