From 09d739d3d49561f533bd9167d900f9c7159349d9 Mon Sep 17 00:00:00 2001 From: cesare Date: Fri, 18 Nov 2022 11:19:06 +0100 Subject: [PATCH] minor change --- js/cesareBrowse.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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