diff --git a/js/guimanager.js b/js/guimanager.js index 94becca..f58225b 100644 --- a/js/guimanager.js +++ b/js/guimanager.js @@ -444,16 +444,18 @@ $(document).ready(function() { jQuery(document).delegate('a.set-filter', 'click', function(e) { e.preventDefault(); - var didConfirm = confirm("Sei sicuro di voler definire il filtro?"); - if (didConfirm == true) { + var content = jQuery('#filtro'), size = jQuery('#filtri >div').length + 1, element = null, element = content.clone(); - if (size == 1) + if (size == 1){ filterconditions = 1; + var divFiltri = $('#divfiltri').attr('style', "display:block;"); + divFiltri.appenTo('#tuttiFiltri'); + } else filterconditions = filterconditions + 1; @@ -491,11 +493,6 @@ $(document).ready(function() { condizioniFiltro = {} return true; - } else { - return false; - } - - }) /**