link = this.addLink(navType, 'interface-chapters', '#/page/' + this.fluidbook.datas.chaptersPage, 'chapters', 'chapters', 'chapters');
} else if (this.fluidbook.datas.chapters.length > 0) {
- if (navType == 'menu') {
+ // 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.datas.chaptersCascade) {
link = this.addLink(navType, 'interface-chapters', '', 'chapters', 'chapters', 'chapters');
// Get HTML for submenus (appended later)