aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/rspamd.js
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-07-11 18:41:55 +0300
committermoisseev <moiseev@mezonplus.ru>2020-07-11 18:41:55 +0300
commit4dd33bb9491cad012ee2e3587014cd4a160472ba (patch)
tree37b7af87ff20618aef82d3ad7d2e4b5423d5ef6d /interface/js/app/rspamd.js
parentf94be8262d42e1f02d124682ac1a46b3c1c39805 (diff)
downloadrspamd-4dd33bb9491cad012ee2e3587014cd4a160472ba.tar.gz
rspamd-4dd33bb9491cad012ee2e3587014cd4a160472ba.zip
[WebUI] Rework actions form
Diffstat (limited to 'interface/js/app/rspamd.js')
-rw-r--r--interface/js/app/rspamd.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index be7594e30..f08363c62 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -276,11 +276,15 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_
// So when we store the boolean true or false, it actually stores the strings "true" or "false".
ui.read_only = sessionStorage.getItem("read_only") === "true";
if (ui.read_only) {
+ $(".ro-disable").attr("disabled", true);
+ $(".ro-hide").hide();
$(".learn").hide();
$("#resetHistory").attr("disabled", true);
$("#errors-history").hide();
$("#selectors_nav").hide();
} else {
+ $(".ro-disable").removeAttr("disabled", true);
+ $(".ro-hide").show();
$(".learn").show();
$("#resetHistory").removeAttr("disabled", true);
$("#errors-history").show();