Bug "riferimenti" corretto
This commit is contained in:
parent
157ac5c5a2
commit
9ac7b5cd37
|
@ -143,7 +143,7 @@ $(document).ready(function() {
|
||||||
$("#advancedSearchDiv").addClass( "d-flex" )
|
$("#advancedSearchDiv").addClass( "d-flex" )
|
||||||
$("#advancedSearchDiv").fadeIn(400, function(){
|
$("#advancedSearchDiv").fadeIn(400, function(){
|
||||||
$("#collapseAdvanced").collapse('show');
|
$("#collapseAdvanced").collapse('show');
|
||||||
if (queryJson.unitaRicerca == "riferimenti") {
|
if (queryJson.unitaRicerca == "riferimento") {
|
||||||
$("#collapseLogicRif").collapse('show');
|
$("#collapseLogicRif").collapse('show');
|
||||||
} else {
|
} else {
|
||||||
$("#collapseLogicCla").collapse('show');
|
$("#collapseLogicCla").collapse('show');
|
||||||
|
@ -313,7 +313,7 @@ $(document).ready(function() {
|
||||||
var thisIs = $("#" + claListItemId);
|
var thisIs = $("#" + claListItemId);
|
||||||
$("#" + claListItemId).fadeOut(300, function(){
|
$("#" + claListItemId).fadeOut(300, function(){
|
||||||
thisIs.remove();
|
thisIs.remove();
|
||||||
if (queryJson.unitaRicerca == "riferimenti") {
|
if (queryJson.unitaRicerca == "riferimento") {
|
||||||
rifListLen--;
|
rifListLen--;
|
||||||
delete queryJson["Riferimento" + claIdNum];
|
delete queryJson["Riferimento" + claIdNum];
|
||||||
} else {
|
} else {
|
||||||
|
@ -332,7 +332,7 @@ $(document).ready(function() {
|
||||||
var thisIs = $(this).closest('ul').parent();
|
var thisIs = $(this).closest('ul').parent();
|
||||||
$(this).closest('ul').fadeOut(300, function(){
|
$(this).closest('ul').fadeOut(300, function(){
|
||||||
thisIs.remove();
|
thisIs.remove();
|
||||||
if (queryJson.unitaRicerca == "riferimenti") {
|
if (queryJson.unitaRicerca == "riferimento") {
|
||||||
condListRifLen--;
|
condListRifLen--;
|
||||||
if (rifListLen == 0 && condListRifLen == 0) {
|
if (rifListLen == 0 && condListRifLen == 0) {
|
||||||
$('#sortableRif0').html(emptyClaList);
|
$('#sortableRif0').html(emptyClaList);
|
||||||
|
@ -920,7 +920,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
// Funzione di creazione del LI delle condizioni logiche
|
// Funzione di creazione del LI delle condizioni logiche
|
||||||
function addLogicCond(sortableId,condtype){
|
function addLogicCond(sortableId,condtype){
|
||||||
if (queryJson.unitaRicerca == "riferimenti") {
|
if (queryJson.unitaRicerca == "riferimento") {
|
||||||
condListRifLen++;
|
condListRifLen++;
|
||||||
var sortableIdNum = "Rif" + condListRifLen;
|
var sortableIdNum = "Rif" + condListRifLen;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1345,7 +1345,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
// Funzione di refresh dei collegamenti tra elementi sortable
|
// Funzione di refresh dei collegamenti tra elementi sortable
|
||||||
function refreshConnectWith(){
|
function refreshConnectWith(){
|
||||||
if (queryJson.unitaRicerca == "riferimenti") {
|
if (queryJson.unitaRicerca == "riferimento") {
|
||||||
var sortableIdNum = condListRifLen;
|
var sortableIdNum = condListRifLen;
|
||||||
var sortableIdPrefix = "#sortableRif";
|
var sortableIdPrefix = "#sortableRif";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue