Commit c9e9b4dd authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(trafficshaper) add quick tab navigation

(cherry picked from commit 23f14082)
parent 5873807f
<menu>
<Firewall>
<TrafficShaper order="40" VisibleName="Traffic Shaper" cssClass="fa fa-filter fa-fw">
<Settings order="10" url="/ui/trafficshaper/"/>
<Settings order="10" url="/ui/trafficshaper/">
<Pipes VisibleName="Pipes" url="/ui/trafficshaper/#pipes"/>
<Queues VisibleName="Queues" url="/ui/trafficshaper/#queues"/>
<Rules VisibleName="Rules" url="/ui/trafficshaper/#rules"/>
</Settings>
<Status order="20" url="/diag_limiter_info.php"/>
</TrafficShaper>
</Firewall>
......
......@@ -93,6 +93,13 @@ POSSIBILITY OF SUCH DAMAGE.
});
});
// update history on tab state and implement navigation
if (window.location.hash != "") {
$('a[href="' + window.location.hash + '"]').click()
}
$('.nav-tabs a').on('shown.bs.tab', function (e) {
history.pushState(null, null, e.target.hash);
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment