|
|
@ -68,6 +68,13 @@ export class MainMenuNavigationService { |
|
|
|
// Wrap main item
|
|
|
|
// Wrap main item
|
|
|
|
this.wrapMainItem(); |
|
|
|
this.wrapMainItem(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Scroll to the active item
|
|
|
|
|
|
|
|
const selected = jQuery('.main-item-wrapper a.selected'); |
|
|
|
|
|
|
|
if (selected.length > 0) { |
|
|
|
|
|
|
|
selected[0].scrollIntoView(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Recreate toggler
|
|
|
|
// Recreate toggler
|
|
|
|
const toggler = this.recreateToggler(); |
|
|
|
const toggler = this.recreateToggler(); |
|
|
|
|
|
|
|
|
|
|
@ -78,8 +85,6 @@ export class MainMenuNavigationService { |
|
|
|
this.navigationEvents$.next(active || activeRoot); |
|
|
|
this.navigationEvents$.next(active || activeRoot); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jQuery('#main-menu li:has(ul) .main-item-wrapper > a').not('ul ul a') |
|
|
|
jQuery('#main-menu li:has(ul) .main-item-wrapper > a').not('ul ul a') |
|
|
|
// 1. unbind the current click functions
|
|
|
|
// 1. unbind the current click functions
|
|
|
|
.unbind('click') |
|
|
|
.unbind('click') |
|
|
|