From c290eece13a1f9f1f816789f5e02bb9c0cf34d82 Mon Sep 17 00:00:00 2001 From: moisseev Date: Sun, 15 Oct 2023 19:58:20 +0300 Subject: [PATCH] [WebUI] Add control to invert action filter to scan results and history tables Issue: #4098 --- .eslintrc.json | 1 + interface/js/app/rspamd.js | 32 +++++++++++++++++++++++++++----- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 714c80f7c..f0856b782 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -49,6 +49,7 @@ "padded-blocks": "off", "prefer-arrow-callback": "off", "prefer-destructuring": "off", + "prefer-named-capture-group": "off", "prefer-object-has-own": "off", "prefer-spread": "off", "prefer-template": "off", diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 763579ca6..59a4a4d17 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -792,13 +792,29 @@ function ($, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_config, }, $create: function () { this._super(); - var self = this, $form_grp = $("
", { - class: "form-group" + const self = this, $form_grp = $("
", { + class: "form-group d-inline-flex align-items-center" }).append($("