mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Update history on tab state and implement navigation.
This commit is contained in:
committed by
Franco Fichtner
parent
e7d8fa9dac
commit
9f9cf4fbb6
@@ -35,11 +35,18 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
$("#network_details_collapse_all").click(function() {
|
||||
$(".network_details").collapse('toggle');
|
||||
});
|
||||
});
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#peer_details_collapse_all").click(function() {
|
||||
$(".peer_details").collapse('toggle');
|
||||
});
|
||||
|
||||
// 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);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user