diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 08c89db..e6dd21d 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -591,10 +591,11 @@ jQuery(document).delegate('#cleanresult', 'click', function(e) { i+=1 let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0); // - var spanbadge=$(''); - spanbadge.attr('class', 'badge badge-primary badge-pill'); - spanbadge.append(count) - spanbadge.insertAfter($('#cantica'+i)) + var spanbadgecantica=$(''); + 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