mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-30 03:39:50 +02:00
fix sidebar for translation pages (previously, for example, es_ES
matched all es_ES pages, so home was always highlighted)
This commit is contained in:
@@ -207,7 +207,8 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
ol.children().each(function(idx, li) {
|
ol.children().each(function(idx, li) {
|
||||||
var link = $(li).find("a").attr('href');
|
var link = $(li).find("a").attr('href');
|
||||||
if(window.location.href.indexOf(link) > -1 && link !== "/"){
|
var name = $(li).attr('data-name');
|
||||||
|
if(window.location.href.indexOf(link) > -1 && name !== "home"){
|
||||||
$(li).addClass("active");
|
$(li).addClass("active");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
5
assets/js/main.min.js
vendored
5
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user