update filter fixed

This commit is contained in:
nicola 2022-06-21 18:06:27 +02:00
parent 0b318a2ca1
commit e3db92f32f
1 changed files with 3 additions and 4 deletions

View File

@ -645,8 +645,7 @@ jQuery(document).delegate('a.edit-written-filter', 'click', function(e) {
e.preventDefault(); e.preventDefault();
if (clausolaVisibile) if (clausolaVisibile)
return true; return true;
var didConfirm = confirm("Sei sicuro di voler editare il filtro?");
if (didConfirm == true) {
var thisfilter = jQuery(this).attr('target'); var thisfilter = jQuery(this).attr('target');
tempfiltro = condizioniFiltro[thisfilter] tempfiltro = condizioniFiltro[thisfilter]
tempfiltro['target'] = thisfilter tempfiltro['target'] = thisfilter
@ -669,7 +668,6 @@ jQuery(document).delegate('a.edit-written-filter', 'click', function(e) {
} }
}
return true; return true;
/*} else { /*} else {
@ -689,8 +687,9 @@ function showCategoriaGrammaticale(valoriFiltro = {}, filtroTarget = '') {
size = jQuery('#condizioni >div').length + 1, size = jQuery('#condizioni >div').length + 1,
element = null, element = null,
element = content.clone(); element = content.clone();
//alert("Value: " + $("#types").val());
$(":radio").prop("checked", false);
$(":checkbox").prop("checked", false);
element.attr('id', 'cg-' + size); element.attr('id', 'cg-' + size);
element.find('.remove-filter').attr('target', 'cg-' + size); element.find('.remove-filter').attr('target', 'cg-' + size);