]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Hide symbol order toggle in search dropdown 4250/head
authormoisseev <moiseev@mezonplus.ru>
Fri, 26 Aug 2022 11:15:09 +0000 (14:15 +0300)
committermoisseev <moiseev@mezonplus.ru>
Fri, 26 Aug 2022 11:15:09 +0000 (14:15 +0300)
interface/css/rspamd.css
interface/js/app/history.js
interface/js/app/upload.js

index 9e09b13a52d309e4a19c89936dd5ffdb335736ac..044bdd645dbbb192ef87adea8e4c1dd472d1d25f 100644 (file)
@@ -377,6 +377,9 @@ table#symbolsTable input[type="number"] {
         white-space: nowrap;
     }
 }
+.footable-filtering-search .dropdown-menu .sym-order-toggle {
+    display: none;
+}
 
 #history_page_size {
     width: 6em !important;
index c511db25dc05edac9c03b79401e0096e34e841a6..1812a642907863f3a6108a36e3180f997da0431e 100644 (file)
@@ -140,15 +140,17 @@ define(["jquery", "footable"],
                 sortValue: function (val) { return Number(val.options.sortValue); }
             }, {
                 name: "symbols",
-                title: "Symbols<br /><br />" +
-                        '<span style="font-weight:normal;">Sort by:</span><br />' +
-                        '<div class="btn-group btn-group-toggle btn-group-xs btn-sym-order-history" data-toggle="buttons">' +
-                            '<label type="button" class="btn btn-outline-secondary btn-sym-history-magnitude">' +
-                                '<input type="radio" value="magnitude">Magnitude</label>' +
-                            '<label type="button" class="btn btn-outline-secondary btn-sym-history-score">' +
-                                '<input type="radio" value="score">Value</label>' +
-                            '<label type="button" class="btn btn-outline-secondary btn-sym-history-name">' +
-                                '<input type="radio" value="name">Name</label>' +
+                title: "Symbols" +
+                        '<div class="sym-order-toggle">' +
+                            '<br><span style="font-weight:normal;">Sort by:</span><br>' +
+                            '<div class="btn-group btn-group-toggle btn-group-xs btn-sym-order-history" data-toggle="buttons">' +
+                                '<label type="button" class="btn btn-outline-secondary btn-sym-history-magnitude">' +
+                                    '<input type="radio" value="magnitude">Magnitude</label>' +
+                                '<label type="button" class="btn btn-outline-secondary btn-sym-history-score">' +
+                                    '<input type="radio" value="score">Value</label>' +
+                                '<label type="button" class="btn btn-outline-secondary btn-sym-history-name">' +
+                                    '<input type="radio" value="name">Name</label>' +
+                            "</div>" +
                         "</div>",
                 breakpoints: "all",
                 style: {
index cef5c596e870e8ebaa27d541c7f584ee598516ac..4290f9b061313716537b04dcb896668a7bf1a183 100644 (file)
@@ -100,15 +100,17 @@ define(["jquery"],
                 sortValue: function (val) { return Number(val.options.sortValue); }
             }, {
                 name: "symbols",
-                title: "Symbols<br /><br />" +
-                        '<span style="font-weight:normal;">Sort by:</span><br />' +
-                        '<div class="btn-group btn-group-toggle btn-group-xs btn-sym-order-scan" data-toggle="buttons">' +
-                            '<label type="button" class="btn btn-outline-secondary btn-sym-scan-magnitude">' +
-                                '<input type="radio" value="magnitude">Magnitude</label>' +
-                            '<label type="button" class="btn btn-outline-secondary btn-sym-scan-score">' +
-                                '<input type="radio" value="score">Value</label>' +
-                            '<label type="button" class="btn btn-outline-secondary btn-sym-scan-name">' +
-                                '<input type="radio" value="name">Name</label>' +
+                title: "Symbols" +
+                        '<div class="sym-order-toggle">' +
+                            '<br><span style="font-weight:normal;">Sort by:</span><br>' +
+                            '<div class="btn-group btn-group-toggle btn-group-xs btn-sym-order-scan" data-toggle="buttons">' +
+                                '<label type="button" class="btn btn-outline-secondary btn-sym-scan-magnitude">' +
+                                    '<input type="radio" value="magnitude">Magnitude</label>' +
+                                '<label type="button" class="btn btn-outline-secondary btn-sym-scan-score">' +
+                                    '<input type="radio" value="score">Value</label>' +
+                                '<label type="button" class="btn btn-outline-secondary btn-sym-scan-name">' +
+                                    '<input type="radio" value="name">Name</label>' +
+                            "</div>" +
                         "</div>",
                 breakpoints: "all",
                 style: {