aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-04-16 20:59:10 +0600
committerGitHub <noreply@github.com>2024-04-16 20:59:10 +0600
commit1e29462466e48134b325b61c42575254dc0a9fc8 (patch)
tree5332a0a27c743bd9b8b3710d736d6a8f2b2f297b /interface/js/app
parente8b1fd0ec72556d2ab8f65f2f4172927b7d79cc0 (diff)
parent23f11bc1af56e4528144b3fba3ca036aef9ecd5e (diff)
downloadrspamd-1e29462466e48134b325b61c42575254dc0a9fc8.tar.gz
rspamd-1e29462466e48134b325b61c42575254dc0a9fc8.zip
Merge pull request #4927 from moisseev/navbar
[WebUI] Prevent navbar layout shift
Diffstat (limited to 'interface/js/app')
-rw-r--r--interface/js/app/rspamd.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index 75743ac0c..61b7cf155 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -92,7 +92,7 @@ define(["jquery", "app/common", "stickytabs", "visibility",
tab_id = "#" + $(".nav-link.active").attr("id");
}
- $("#autoRefresh").hide();
+ $("#autoRefresh").addClass("invisible");
$("#refresh").addClass("radius-right");
function setAutoRefresh(refreshInterval, timer, callback) {
@@ -113,7 +113,7 @@ define(["jquery", "app/common", "stickytabs", "visibility",
}
$("#refresh").removeClass("radius-right");
- $("#autoRefresh").show();
+ $("#autoRefresh").removeClass("invisible");
countdown(refreshInterval);
if (!refreshInterval) return;
@@ -126,9 +126,9 @@ define(["jquery", "app/common", "stickytabs", "visibility",
}
if (["#scan_nav", "#selectors_nav", "#disconnect"].indexOf(tab_id) !== -1) {
- $("#refresh").hide();
+ $("#refresh").addClass("invisible");
} else {
- $("#refresh").show();
+ $("#refresh").removeClass("invisible");
}
switch (tab_id) {