From c94b586543756a610568b981f96e79b79c3e2aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Mon, 13 Mar 2023 07:44:08 +0100 Subject: [PATCH] reduce literal html in javascript-code --- view/theme/frio/js/theme.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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();