Skip to content

Commit

Permalink
Merge pull request #1339 from INN/1336-fix-overflow-menu-when-named-More
Browse files Browse the repository at this point in the history
Rename the sticky nav overflow menu to something that doesn't conflict with menus named 'More'
  • Loading branch information
aschweigert authored Oct 11, 2016
2 parents 926e673 + 7590440 commit f6b0886
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@
if (overflow.length == 0) {
var overflowmenu ='<li id="menu-overflow" class="menu-item-has-children dropdown">' +
'<a href="#" class="dropdown-toggle">' + Largo.sticky_nav_options.nav_overflow_label + '<b class="caret"></b></a>' +
'<ul id="menu-more-1" class="dropdown-menu"></ul></li>';
'<ul id="sticky-nav-overflow" class="dropdown-menu"></ul></li>';
overflow = $(overflowmenu);
overflow.find('a').click(function() { return false; });
shelf.find('ul.nav > li.menu-item').last().after(overflow);
}

var li = shelf.find('ul.nav > li.menu-item').last();

overflow.find('ul#menu-more-1').prepend(li);
overflow.find('ul#sticky-nav-overflow').prepend(li);
li.addClass('overflowed');
li.data('shelfwidth', shelfWidth);
} else if (overflow.length) {
Expand Down
2 changes: 1 addition & 1 deletion js/navigation.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f6b0886

Please sign in to comment.