aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2022-08-26 14:15:09 +0300
committermoisseev <moiseev@mezonplus.ru>2022-08-26 14:15:09 +0300
commit18c9f2c9c8ded2d3165c7f80eaa8febbaf58ecfe (patch)
tree846f971865e5bf1e0894e73a81fa9c9bace5f44e /interface/js
parentaca11603fc7d669fb104152760d2a051866f2cc7 (diff)
downloadrspamd-18c9f2c9c8ded2d3165c7f80eaa8febbaf58ecfe.tar.gz
rspamd-18c9f2c9c8ded2d3165c7f80eaa8febbaf58ecfe.zip
[WebUI] Hide symbol order toggle in search dropdown
Diffstat (limited to 'interface/js')
-rw-r--r--interface/js/app/history.js20
-rw-r--r--interface/js/app/upload.js20
2 files changed, 22 insertions, 18 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index c511db25d..1812a6429 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -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: {
diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js
index cef5c596e..4290f9b06 100644
--- a/interface/js/app/upload.js
+++ b/interface/js/app/upload.js
@@ -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: {