aboutsummaryrefslogtreecommitdiffstats
path: root/interface/index.html
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2019-05-12 13:00:47 +0300
committermoisseev <moiseev@mezonplus.ru>2019-05-12 13:00:47 +0300
commit47a86a5406b52e3379aac3f21cb9338313bda973 (patch)
treec7d2b6b6f137fffb0e6b168550c30932e361d0bb /interface/index.html
parent7482bf1ce76169463c01e32ce60154e27a74ec78 (diff)
downloadrspamd-47a86a5406b52e3379aac3f21cb9338313bda973.tar.gz
rspamd-47a86a5406b52e3379aac3f21cb9338313bda973.zip
[WebUI] Add URL fragments (#) support
for tab switching - Show the correct tab when the page is loaded if there is a hash in the URL. - Changing the hash in the URL when the tab is changed. - Change the tab when the hash changes in the URL (back / forward buttons).
Diffstat (limited to 'interface/index.html')
-rw-r--r--interface/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/interface/index.html b/interface/index.html
index 88a3c41f8..bb3206aa9 100644
--- a/interface/index.html
+++ b/interface/index.html
@@ -24,8 +24,8 @@
<form class="navbar-form navbar-left">
<select id="selSrv" class="form-control"></select>
</form>
- <ul class="nav navbar-nav nav-pills" role="tablist">
- <li role="presentation" class="active"><a id="status_nav" aria-controls="status" role="tab" href="#status" data-toggle="tab">Status</a></li>
+ <ul class="nav navbar-nav nav-pills nav-tabs-sticky" role="tablist">
+ <li role="presentation"><a id="status_nav" aria-controls="status" role="tab" href="#status" data-toggle="tab">Status</a></li>
<li role="presentation"><a id="throughput_nav" aria-controls="throughput" role="tab" href="#throughput" data-toggle="tab">Throughput</a></li>
@@ -35,8 +35,8 @@
<li role="presentation"><a id="history_nav" aria-controls="history" role="tab" href="#history" data-toggle="tab">History</a></li>
</ul>
<ul class="nav navbar-nav nav-pills pull-right" style="display: none;">
- <li><a href="#" data-toggle="tab" id="refresh"><i class="glyphicon glyphicon-refresh glyphicon-spin"></i> Refresh</a></li>
- <li><a href="#" data-toggle="tab" id="disconnect"><i class="glyphicon glyphicon-off"></i> Disconnect</a></li>
+ <li><a href="#" role="button" data-toggle="button" id="refresh"><i class="glyphicon glyphicon-refresh glyphicon-spin"></i> Refresh</a></li>
+ <li><a href="#" role="button" data-toggle="button" id="disconnect"><i class="glyphicon glyphicon-off"></i> Disconnect</a></li>
</ul>
</div>
</nav>