reduce literal html in javascript-code
This commit is contained in:
parent
f8018f8dfe
commit
c94b586543
|
@ -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 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) {
|
if ($('img[id^=waitfor-' + verb + '-' + ident.toString() + ']').length == 0) {
|
||||||
// append rotator to the shareMenu-button for small media
|
// append rotator to the shareMenu-button for small media
|
||||||
$('<img id="waitfor-' + verb + '-' + ident.toString() + '">')
|
$('<img>')
|
||||||
.attr('src', 'images/rotator.gif')
|
.attr('id', 'waitfor-' + verb + '-' + ident.toString())
|
||||||
.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 {
|
||||||
|
@ -795,7 +795,8 @@ function doActivityItemAction(ident, verb, un) {
|
||||||
$('button[id^=' + verb + '-' + ident.toString() + '] i:first-child').removeClass(thumbsClass);
|
$('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 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) {
|
if ($('button:not(button.dropdown-toggle) img#waitfor-' + verb + '-' + ident.toString()).length == 0) {
|
||||||
$('<img id="waitfor-' + verb + '-' + ident.toString() + '">')
|
$('<img>')
|
||||||
|
.attr('id', 'waitfor-' + verb + '-' + ident.toString())
|
||||||
.attr('src', 'images/rotator.gif')
|
.attr('src', 'images/rotator.gif')
|
||||||
.addClass('fa')
|
.addClass('fa')
|
||||||
.appendTo($('button[id^=' + verb + '-' + ident.toString() + '] i:first-child')).show();
|
.appendTo($('button[id^=' + verb + '-' + ident.toString() + '] i:first-child')).show();
|
||||||
|
|
Loading…
Reference in a new issue