From 67084ffe3b4ff2eda956b6e077c29296db0e97a2 Mon Sep 17 00:00:00 2001 From: Johannes Koschier Date: Fri, 23 Jun 2023 07:29:36 +0000 Subject: [PATCH] 6532_prevent_change_event_option --- interface/web/mail/templates/mail_user_mailfilter_edit.htm | 4 ++-- interface/web/themes/default/assets/javascripts/ispconfig.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/web/mail/templates/mail_user_mailfilter_edit.htm b/interface/web/mail/templates/mail_user_mailfilter_edit.htm index 8d14eb4ee6..27d1d3ee46 100644 --- a/interface/web/mail/templates/mail_user_mailfilter_edit.htm +++ b/interface/web/mail/templates/mail_user_mailfilter_edit.htm @@ -1,6 +1,6 @@
-
{tmpl_var name='move_junk'}
@@ -31,7 +31,7 @@
- + {tmpl_var name='filter_records'} diff --git a/interface/web/themes/default/assets/javascripts/ispconfig.js b/interface/web/themes/default/assets/javascripts/ispconfig.js index 54d5cd3c64..d909f38183 100644 --- a/interface/web/themes/default/assets/javascripts/ispconfig.js +++ b/interface/web/themes/default/assets/javascripts/ispconfig.js @@ -112,7 +112,7 @@ var ISPConfig = { else return escapeMarkup(o.text); } }).on('change', function(e) { - if ($("#pageForm .table #Filter").length > 0) { + if ($("#pageForm .table #Filter").length > 0 && ! $(this).hasClass("disableChangeEvent")) { $("#pageForm .table #Filter").trigger('click'); } }); @@ -599,7 +599,7 @@ var ISPConfig = { $(document).on("change", function(event) { var elName = event.target.localName; - if ($("#pageForm .table #Filter").length > 0 && elName == 'select') { + if ($("#pageForm .table #Filter").length > 0 && elName == 'select' && ! $(event.target).hasClass("disableChangeEvent") ) { event.preventDefault(); $("#pageForm .table #Filter").trigger('click'); } -- GitLab