Menu hidden by default
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
694a96d938
commit
f25cb7d156
|
@ -221,7 +221,7 @@
|
||||||
}
|
}
|
||||||
// menu part
|
// menu part
|
||||||
crumbs.push({
|
crumbs.push({
|
||||||
class: 'crumbmenu',
|
class: 'crumbmenu hidden',
|
||||||
linkclass: 'icon-more'
|
linkclass: 'icon-more'
|
||||||
});
|
});
|
||||||
// root part
|
// root part
|
||||||
|
@ -315,9 +315,9 @@
|
||||||
* Update the popovermenu
|
* Update the popovermenu
|
||||||
*/
|
*/
|
||||||
_updateMenu: function() {
|
_updateMenu: function() {
|
||||||
var menuItems = this.$el.children('.crumb.hidden');
|
var menuItems = this.$el.find('.crumb.hidden');
|
||||||
// Hide the crumb menu if no elements
|
// Hide the crumb menu if no elements
|
||||||
this.$el.find('.crumbmenu').toggleClass('hidden', menuItems.length===0)
|
this.$el.find('.crumbmenu').toggleClass('hidden', menuItems.length === 0)
|
||||||
|
|
||||||
this.$menu.find('li').addClass('in-breadcrumb');
|
this.$menu.find('li').addClass('in-breadcrumb');
|
||||||
for (var i = 0; i < menuItems.length; i++) {
|
for (var i = 0; i < menuItems.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue