From 66aa25e7fc8f13cae42a677464266344051051da Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Thu, 24 Aug 2017 18:31:23 +0200 Subject: [PATCH] Alternative fix #1620 @0:20 --- js/libs/fluidbook/fluidbook.nav.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/libs/fluidbook/fluidbook.nav.js b/js/libs/fluidbook/fluidbook.nav.js index 064e99c3..c9edbf28 100644 --- a/js/libs/fluidbook/fluidbook.nav.js +++ b/js/libs/fluidbook/fluidbook.nav.js @@ -265,7 +265,9 @@ FluidbookNav.prototype = { 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) -- 2.39.5