Bug "riferimenti" corretto
This commit is contained in:
parent
157ac5c5a2
commit
9ac7b5cd37
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue