Update history on tab state and implement navigation.

This commit is contained in:
Alexander Shursha
2018-06-06 18:04:20 +02:00
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>