]> _ Git - fluidbook-html5.git/commitdiff
Alternative fix #1620 @0:20
authorStephen Cameron <stephen@cubedesigners.com>
Thu, 24 Aug 2017 16:31:23 +0000 (18:31 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Thu, 24 Aug 2017 16:31:23 +0000 (18:31 +0200)
js/libs/fluidbook/fluidbook.nav.js

index 064e99c34d9bf9af8ab72ee248186a752be51a38..c9edbf28efeb1aac04b5752bdfb98f0fd6048313 100644 (file)
@@ -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)