Commit 3a4f79a3 authored by Leo Iannacone's avatar Leo Iannacone

select current page in navbar

parent 306d307d
...@@ -112,5 +112,10 @@ function Page_Generic() ...@@ -112,5 +112,10 @@ function Page_Generic()
socket.on(_e.error, function(error) { socket.on(_e.error, function(error) {
console.error("socket > " + error) console.error("socket > " + error)
}) })
// select current page in navbar
if (window.location.pathname != config.paths.distribution) {
$(".navbar li a[href='" + window.location.pathname + "']").parent().addClass("active")
}
} }
} }
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