]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Hide navbar while page is loading
authormoisseev <moiseev@mezonplus.ru>
Sat, 25 Jul 2020 15:39:14 +0000 (18:39 +0300)
committermoisseev <moiseev@mezonplus.ru>
Sat, 25 Jul 2020 15:39:14 +0000 (18:39 +0300)
interface/index.html
interface/js/app/rspamd.js

index b6dd4c50297fdfd32f9aec0f893a647ae274ee1b..d1e94364623ca7ea7953b2def2218ff4e7b13599 100644 (file)
@@ -27,7 +27,7 @@
 
 <body>
 
-<nav class="navbar navbar-light bg-light navbar-expand-md" id="navBar">
+<nav class="navbar navbar-light bg-light navbar-expand-md d-none" id="navBar">
        <form class="form-inline mr-auto">
        <div class="navbar-header navbar-brand p-0">
                <img src="./img/rspamd_logo_navbar.png" alt="Rspamd">
@@ -45,7 +45,7 @@
                <li role="presentation" class="nav-item"><a id="selectors_nav" aria-controls="selectors" role="tab" href="#selectors" data-toggle="tab" class="nav-link ro-hide" style="display: none;">Test selectors</a></li>
                <li role="presentation" class="nav-item"><a id="history_nav" aria-controls="history" role="tab" href="#history" data-toggle="tab" class="nav-link">History</a></li>
        </ul>
-       <form class="form-inline ml-auto" id="navbar-btn-form" style="display: none;">
+       <form class="form-inline ml-auto">
                <div class="btn-group">
                        <a href="#" class="btn btn-outline-secondary" role="button" data-toggle="button" id="refresh" style="display: none;"><i class="fas fa-sync-alt"></i> Refresh</a>
                        <button class="btn btn-outline-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" id="autoRefresh">
@@ -74,7 +74,7 @@
 
 <div class="notification-area"></div>
 
-<div id="mainUI" style="display: none;">
+<div id="mainUI" class="d-none">
 
        <div class="container-fluid">
 
index cfc366a5cf94d3de6e7d022c4e88f5215cfcab5a..8361bb92528e349e45a5ef10931aa8d66109310f 100644 (file)
@@ -283,9 +283,7 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_
             $(".ro-hide").show();
         }
 
-        var buttons = $("#navbar-btn-form");
-        $("#mainUI").show();
-        $(buttons).show();
+        $("#navBar, #mainUI").removeClass("d-none");
         $(".nav-tabs-sticky").stickyTabs({initialTab:"#status_nav"});
     }