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:
parent
67d8e3aed9
commit
676a070240
2 changed files with 6 additions and 2 deletions
|
@ -207,7 +207,8 @@ $(document).ready(function(){
|
|||
}
|
||||
ol.children().each(function(idx, li) {
|
||||
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");
|
||||
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
Loading…
Reference in a new issue