From e3db92f32fe8ac9b0e81ac649b16185e7eaab860 Mon Sep 17 00:00:00 2001 From: nicola Date: Tue, 21 Jun 2022 18:06:27 +0200 Subject: [PATCH] update filter fixed --- js/guimanagerNik.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/guimanagerNik.js b/js/guimanagerNik.js index ac7096c..8de2dee 100644 --- a/js/guimanagerNik.js +++ b/js/guimanagerNik.js @@ -645,8 +645,7 @@ jQuery(document).delegate('a.edit-written-filter', 'click', function(e) { e.preventDefault(); if (clausolaVisibile) return true; - var didConfirm = confirm("Sei sicuro di voler editare il filtro?"); - if (didConfirm == true) { + var thisfilter = jQuery(this).attr('target'); tempfiltro = condizioniFiltro[thisfilter] tempfiltro['target'] = thisfilter @@ -669,7 +668,6 @@ jQuery(document).delegate('a.edit-written-filter', 'click', function(e) { } - } return true; /*} else { @@ -689,8 +687,9 @@ function showCategoriaGrammaticale(valoriFiltro = {}, filtroTarget = '') { size = jQuery('#condizioni >div').length + 1, element = null, element = content.clone(); - //alert("Value: " + $("#types").val()); + $(":radio").prop("checked", false); + $(":checkbox").prop("checked", false); element.attr('id', 'cg-' + size); element.find('.remove-filter').attr('target', 'cg-' + size);