Tabs are now persistent (URL)

This commit is contained in:
Rsl1122 2019-09-26 17:16:15 +03:00
parent 506fee8000
commit 150e08186c

View File

@ -67,6 +67,13 @@ function openPage() {
openPage(); openPage();
}); });
// Persistent Bootstrap tabs
$('.nav-tabs a.nav-link').click(function (e) {
var params = (window.location.hash).split("&");
if (!params) return;
window.location.hash = params[0] + '&' + e.target.href.split('#')[1];
});
var oldWidth = null; var oldWidth = null;
function reduceSidebar() { function reduceSidebar() {