From: Jakobus Schürz Date: Mon, 13 Mar 2023 06:44:08 +0000 (+0100) Subject: reduce literal html in javascript-code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c94b586543756a610568b981f96e79b79c3e2aac;p=friendica.git reduce literal html in javascript-code --- diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index a94bd560b2..0916552f23 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -784,8 +784,8 @@ function doActivityItemAction(ident, verb, un) { // if no wait-rotator for activity(verb) is added, add it. or just show it, if exists if ($('img[id^=waitfor-' + verb + '-' + ident.toString() + ']').length == 0) { // append rotator to the shareMenu-button for small media - $('') - .attr('src', 'images/rotator.gif') + $('') + .attr('id', 'waitfor-' + verb + '-' + ident.toString()) .addClass('fa') .appendTo($('button[id^=shareMenuOptions-' + ident.toString() + '] i:first-child' )).show(); } else { @@ -795,7 +795,8 @@ function doActivityItemAction(ident, verb, un) { $('button[id^=' + verb + '-' + ident.toString() + '] i:first-child').removeClass(thumbsClass); // if verb is announce, then one rotator is added above to the shareMedia-dropdown button if ($('button:not(button.dropdown-toggle) img#waitfor-' + verb + '-' + ident.toString()).length == 0) { - $('') + $('') + .attr('id', 'waitfor-' + verb + '-' + ident.toString()) .attr('src', 'images/rotator.gif') .addClass('fa') .appendTo($('button[id^=' + verb + '-' + ident.toString() + '] i:first-child')).show();