aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-07-11 18:57:53 +0300
committermoisseev <moiseev@mezonplus.ru>2020-07-11 18:57:53 +0300
commit95ce6d5616ab2eb3c8983f2cb2756273a2af0c9a (patch)
tree9a6323bfbfea799b91ef38f77374aba96bd21112 /interface/js/app
parent4dd33bb9491cad012ee2e3587014cd4a160472ba (diff)
downloadrspamd-95ce6d5616ab2eb3c8983f2cb2756273a2af0c9a.tar.gz
rspamd-95ce6d5616ab2eb3c8983f2cb2756273a2af0c9a.zip
[Minor] Use class for hiding WebUI elements
Diffstat (limited to 'interface/js/app')
-rw-r--r--interface/js/app/rspamd.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index f08363c62..cfc366a5c 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -278,17 +278,9 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_
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();
- $("#selectors_nav").show();
}
var buttons = $("#navbar-btn-form");