(proxy) change url on tabchange and add quick nav

This commit is contained in:
Ad Schellevis 2016-02-02 14:07:06 +01:00
parent fd395c7162
commit ffc5ef3a52

View File

@ -147,6 +147,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);
});
});