window.location = $($thislink).attr('href');
}, 500);
} else {
- $this.closeMenu();
+ $this.burger.close();
window.location = $(this).attr('href');
}
return false;
} else if (this.fluidbook.settings.chaptersPage !== '') {
link = this.addLink(navType, 'nav-chapters', '#/page/' + this.fluidbook.settings.chaptersPage, 'chapters', 'chapters', 'chapters', 'F2');
} else if (this.fluidbook.settings.chapters.length > 0) {
- // NOTE: Currently the MMenu breaks when the non-cascading chapter UL HTML is inserted so it will
- // be opened in a popup for now. Todo: fix this so it works as a sub panel of it's own
- if (navType === 'menu' && this.fluidbook.settings.chaptersCascade && !this.fluidbook.settings.displayChaptersPopup) {
- link = this.addLink(navType, 'nav-chapters', '', 'chapters', 'chapters', 'chapters', 'F2');
-
- // Get HTML for submenus (appended later)
- this.chaptersMenuHTML = this.makeChapterLists(this.fluidbook.settings.chapters);
-
- } else {
- link = this.addLink(navType, 'nav-chapters', '#/chapters', 'chapters', 'chapters', 'chapters', 'F2');
- }
+ link = this.addLink(navType, 'nav-chapters', '#/chapters', 'chapters', 'chapters', 'chapters', 'F2');
}
// Sharing icons - this may contain many different icons
} else if (icon === 'friend') {
// Full screen toggle
$(document).on(this.fluidbook.input.clickEvent, '.icon-fullscreen', function () {
- $this.closeMenu();
+ $this.burger.close();
$this.fluidbook.support.toggleFullscreen();
return false;
});