mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
fix navbar
This commit is contained in:
parent
e2c6474515
commit
4ba25faab0
1 changed files with 4 additions and 1 deletions
|
@ -147,8 +147,11 @@ $(document).ready(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
$("a").each(function () {
|
$("a").each(function () {
|
||||||
|
var res = window.location.split("?");
|
||||||
|
pathWitoutGet = res[0];
|
||||||
if ($(this).attr("href") == window.location.pathname
|
if ($(this).attr("href") == window.location.pathname
|
||||||
|| $(this).attr("href") == window.location) {
|
|| $(this).attr("href") == window.location
|
||||||
|
|| $(this).attr("href") == pathWitoutGet) {
|
||||||
$(this).addClass("selected");
|
$(this).addClass("selected");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue