Merge pull request #5000 from jjm2473/fix-luci-theme-material-nav-node-active
luci-theme-material: fix wrong active state on common prefix node
This commit is contained in:
commit
385df16584
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ document.addEventListener('luci-loaded', function(ev) {
|
|||
var that = $(this);
|
||||
var href = that.attr("href");
|
||||
|
||||
if (href.indexOf(nodeUrl) != -1) {
|
||||
if (href.endsWith(nodeUrl) || href.indexOf('/' + nodeUrl + '/') != -1) {
|
||||
ulNode.click();
|
||||
ulNode.next(".slide-menu").stop(true, true);
|
||||
lastNode = that.parent();
|
||||
|
|
Loading…
Reference in a new issue