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();
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);