From: moisseev Date: Fri, 8 Mar 2024 16:47:18 +0000 (+0300) Subject: [WebUI] Add check/uncheck all checkboxes buttons X-Git-Tag: 3.9.0~104^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72b660061dc0951f8fd4a35003264308617bcec6;p=rspamd.git [WebUI] Add check/uncheck all checkboxes buttons to table filter dropdowns --- diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index d21dfd605..4885e6d7f 100644 --- a/interface/css/rspamd.css +++ b/interface/css/rspamd.css @@ -311,6 +311,10 @@ table#symbolsTable input[type="number"] { .footable tr:not(.footable-detail-row) > td { font-size: 11px; } +.footable-dropdown-btn-group { + padding: 0 20px; + margin: 7px 0; +} .status-table tr:last-child td:last-child { border-radius: 0 0 calc(var(--bs-border-radius) + 1px) 0; diff --git a/interface/js/app/common.js b/interface/js/app/common.js index 0364ed0e9..1fc723542 100644 --- a/interface/js/app/common.js +++ b/interface/js/app/common.js @@ -234,5 +234,24 @@ define(["jquery", "nprogress"], return String(string).replace(htmlEscaper, (match) => htmlEscapes[match]); }; + ui.appendButtonsToFtFilterDropdown = (ftFilter) => { + function button(text, classes, check) { + return $("