From: moisseev Date: Wed, 11 Oct 2023 07:53:35 +0000 (+0300) Subject: [Minor] Remove unused FooTable hook X-Git-Tag: 3.7.2~11^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d79888f8efcbbb7263e021b73c3f9f94e4f8549b;p=thirdparty%2Frspamd.git [Minor] Remove unused FooTable hook as the ability to set dropdown value through the FooTable options is not used in the project. --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 67b60d973d..763579ca67 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -824,19 +824,6 @@ function ($, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_config, self.removeFilter("action"); } self.filter(); - }, - draw: function () { - this._super(); - var action = this.find("action"); - if (action instanceof FooTable.Filter) { - if (action.query.val() === "reject -soft") { - this.$action.val("reject"); - } else { - this.$action.val(action.query.val()); - } - } else { - this.$action.val(this.def); - } } }); /* eslint-enable consistent-this, no-underscore-dangle, one-var-declaration-per-line */