fissato baco remove clausola

This commit is contained in:
nicola 2024-12-13 13:15:40 +01:00
parent 2d07be7177
commit 1afb99e201
1 changed files with 11 additions and 7 deletions

View File

@ -340,13 +340,16 @@ $(document).ready(function() {
claListLen--; claListLen--;
numberOfQueries--; numberOfQueries--;
var thisIs = $("#" + claListItemId); var thisIs = $("#" + claListItemId);
if (claIdNum > 1) {
$("#" + claListItemId).fadeOut(300, function() { $("#" + claListItemId).fadeOut(300, function() {
thisIs.remove(); thisIs.remove();
$("#cond" + claIdNum).remove();
delete queryJson["Clausola" + claIdNum]; delete queryJson["Clausola" + claIdNum];
delete window["context" + claIdNum]; delete window["context" + claIdNum];
refreshClaList(claIdNum); refreshClaList(claIdNum);
refreshSortables(); refreshSortables();
}); });
}
}); });
// Evento: click sull'icona rimuovi condizione // Evento: click sull'icona rimuovi condizione
@ -981,6 +984,7 @@ $(document).ready(function() {
cloneLI = cloneLI.replace(/claCollBtn/g, "claCollBtn " + checkInsert); cloneLI = cloneLI.replace(/claCollBtn/g, "claCollBtn " + checkInsert);
}; };
var boolCond = $('<span />') var boolCond = $('<span />')
boolCond.attr('id','cond'+tabID);
switch (cond){ switch (cond){
case 1: boolCond.append("AND"); case 1: boolCond.append("AND");
break; break;