Get correct navigation link id on first render

This commit is contained in:
Matthias Jentsch 2014-10-01 16:49:30 +02:00
parent fa2c9e46ed
commit ec9e9e8dfb
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@
var $menus = $('[role="navigation"] li.active', el);
if ($menus.size()) {
activeMenuId = $menus[0].id;
$menus.find('li.active').first().each(function () {
activeMenuId = this.id;
});
}
}
};