diff --git a/js/guimanagerNik.js b/js/guimanagerNik.js index fa1f1c9..ac7096c 100644 --- a/js/guimanagerNik.js +++ b/js/guimanagerNik.js @@ -448,9 +448,10 @@ $(document).ready(function() { else filterconditions = filterconditions + 1; - element.attr('id', 'filtro-' + filterconditions); - element.find('.delete-written-filter').attr('target', 'filtro-' + filterconditions); - element.find('.edit-written-filter').attr('target', 'filtro-' + filterconditions); + let filtroId = 'filtro-' + filterconditions; + element.attr('id', filtroId); + element.find('.delete-written-filter').attr('target', filtroId); + element.find('.edit-written-filter').attr('target', filtroId); //trasformo il filtro espresso nella clausola in un oggetto JSON @@ -474,17 +475,13 @@ $(document).ready(function() { var dlclass = $('