Skip to content

Commit 2e5f2c6

Browse files
committed
fix(frontend): edit_filter actin not triggering modal
1 parent c9b215b commit 2e5f2c6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

modules/sievefilters/site.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,6 @@ function sieveFiltersPageHandler() {
577577
current_account = $(this).attr('account');
578578
edit_script_modal.open();
579579
});
580-
$('.edit_filter').on('click', function (e) {
581-
e.preventDefault();
582-
let script_name = $(this).parent().parent().children().next().html();
583-
edit_filter_modal.setTitle(script_name);
584-
edit_filter_modal.open();
585-
});
586580

587581
/**
588582
* Delete action Button
@@ -997,6 +991,8 @@ function sieveFiltersPageHandler() {
997991
}
998992
}
999993
});
994+
edit_filter_modal.setTitle(current_editing_filter_name);
995+
edit_filter_modal.open();
1000996
}
1001997
);
1002998
});

0 commit comments

Comments
 (0)