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
let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0);
//<span class="badge badge-primary badge-pill"></span>
var spanbadge=$('<span />');
spanbadge.attr('class', 'badge badge-primary badge-pill');
spanbadge.append(count)
spanbadge.insertAfter($('#cantica'+i))
var spanbadgecantica=$('<span />');
spanbadgecantica.attr('class', 'badge badge-primary badge-pill');
spanbadgecantica.append(count)
//spanbadgecantica.insertAfter($('#cantica'+i))
spanbadgecantica.appendTo($('#cantica'+i))
}
//aggiunge badge con totale risultati accanto ai canti