minor change

This commit is contained in:
cesare 2022-11-18 11:19:06 +01:00
parent af3eea70f9
commit 09d739d3d4
1 changed files with 5 additions and 4 deletions

View File

@ -591,10 +591,11 @@ jQuery(document).delegate('#cleanresult', 'click', function(e) {
i+=1 i+=1
let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0); let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0);
//<span class="badge badge-primary badge-pill"></span> //<span class="badge badge-primary badge-pill"></span>
var spanbadge=$('<span />'); var spanbadgecantica=$('<span />');
spanbadge.attr('class', 'badge badge-primary badge-pill'); spanbadgecantica.attr('class', 'badge badge-primary badge-pill');
spanbadge.append(count) spanbadgecantica.append(count)
spanbadge.insertAfter($('#cantica'+i)) //spanbadgecantica.insertAfter($('#cantica'+i))
spanbadgecantica.appendTo($('#cantica'+i))
} }
//aggiunge badge con totale risultati accanto ai canti //aggiunge badge con totale risultati accanto ai canti