From 97ab161940eb106647405068c465498f4fcba908 Mon Sep 17 00:00:00 2001 From: cesare Date: Tue, 25 Mar 2025 16:41:48 +0100 Subject: [PATCH] generazione badge catica --- js/browseMgr_5.1.js | 7 ++++--- js/browseMgr_5.2.js | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/js/browseMgr_5.1.js b/js/browseMgr_5.1.js index ef53146..127f8de 100644 --- a/js/browseMgr_5.1.js +++ b/js/browseMgr_5.1.js @@ -150,7 +150,7 @@ $(document).ready(function() { $("#visAiuto").click(function(){ - window.open("./Manuale/manualeGUI.html","_blank"); + window.open("./manuale/manualeGUI.html","_blank"); }) @@ -2682,6 +2682,7 @@ $(document).ready(function() { } //ordino la lista dei risultati + listarisultati.sort(function(a, b) { return a - b }); // ordino la lista delle clausole del risultato listaClausoleRisultato.sort(function(a, b) { @@ -2759,8 +2760,8 @@ $(document).ready(function() { let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0); if (count > 0) { totResultN += count - var spanbadgecantica = $(''); - spanbadgecantica.attr('class', 'badge badge-warning badge-pill mx-2'); + var spanbadgecantica = $(''); + //spanbadgecantica.attr('class', 'badge badge-warning badge-pill mx-2'); spanbadgecantica.append(count) spanbadgecantica.appendTo($('#cantica' + i + '-badge')) //$('#cantica' + i).after(spanbadgecantica) diff --git a/js/browseMgr_5.2.js b/js/browseMgr_5.2.js index 9ddc1aa..e0a59bc 100644 --- a/js/browseMgr_5.2.js +++ b/js/browseMgr_5.2.js @@ -2757,8 +2757,8 @@ $(document).ready(function() { let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0); if (count > 0) { totResultN += count - var spanbadgecantica = $(''); - spanbadgecantica.attr('class', 'badge badge-warning badge-pill mx-2'); + var spanbadgecantica = $(''); + //spanbadgecantica.attr('class', 'badge badge-warning badge-pill mx-2'); spanbadgecantica.append(count) spanbadgecantica.appendTo($('#cantica' + i + '-badge')) //$('#cantica' + i).after(spanbadgecantica)