1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

fix navbar

This commit is contained in:
daniel 2019-01-10 23:22:56 -03:00
parent e2c6474515
commit 4ba25faab0

View file

@ -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");
} }
}); });