From 9ac7b5cd37e271986764a2c5905895233507d5c6 Mon Sep 17 00:00:00 2001 From: Luca Trupiano Date: Tue, 18 Feb 2025 15:16:20 +0100 Subject: [PATCH] Bug "riferimenti" corretto --- js/script_5.1.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/script_5.1.js b/js/script_5.1.js index 4b4a659..48a55ce 100644 --- a/js/script_5.1.js +++ b/js/script_5.1.js @@ -143,7 +143,7 @@ $(document).ready(function() { $("#advancedSearchDiv").addClass( "d-flex" ) $("#advancedSearchDiv").fadeIn(400, function(){ $("#collapseAdvanced").collapse('show'); - if (queryJson.unitaRicerca == "riferimenti") { + if (queryJson.unitaRicerca == "riferimento") { $("#collapseLogicRif").collapse('show'); } else { $("#collapseLogicCla").collapse('show'); @@ -313,7 +313,7 @@ $(document).ready(function() { var thisIs = $("#" + claListItemId); $("#" + claListItemId).fadeOut(300, function(){ thisIs.remove(); - if (queryJson.unitaRicerca == "riferimenti") { + if (queryJson.unitaRicerca == "riferimento") { rifListLen--; delete queryJson["Riferimento" + claIdNum]; } else { @@ -332,7 +332,7 @@ $(document).ready(function() { var thisIs = $(this).closest('ul').parent(); $(this).closest('ul').fadeOut(300, function(){ thisIs.remove(); - if (queryJson.unitaRicerca == "riferimenti") { + if (queryJson.unitaRicerca == "riferimento") { condListRifLen--; if (rifListLen == 0 && condListRifLen == 0) { $('#sortableRif0').html(emptyClaList); @@ -920,7 +920,7 @@ $(document).ready(function() { // Funzione di creazione del LI delle condizioni logiche function addLogicCond(sortableId,condtype){ - if (queryJson.unitaRicerca == "riferimenti") { + if (queryJson.unitaRicerca == "riferimento") { condListRifLen++; var sortableIdNum = "Rif" + condListRifLen; } else { @@ -1345,7 +1345,7 @@ $(document).ready(function() { // Funzione di refresh dei collegamenti tra elementi sortable function refreshConnectWith(){ - if (queryJson.unitaRicerca == "riferimenti") { + if (queryJson.unitaRicerca == "riferimento") { var sortableIdNum = condListRifLen; var sortableIdPrefix = "#sortableRif"; } else {