diff options
author | moisseev <moiseev@mezonplus.ru> | 2020-07-11 18:41:55 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2020-07-11 18:41:55 +0300 |
commit | 4dd33bb9491cad012ee2e3587014cd4a160472ba (patch) | |
tree | 37b7af87ff20618aef82d3ad7d2e4b5423d5ef6d /interface/js/app/rspamd.js | |
parent | f94be8262d42e1f02d124682ac1a46b3c1c39805 (diff) | |
download | rspamd-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.js | 4 |
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(); |