]> _ Git - fluidbook-html5.git/commitdiff
Done #1564 @0.25
authorStephen Cameron <stephen@cubedesigners.com>
Fri, 6 Oct 2017 10:33:31 +0000 (12:33 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Fri, 6 Oct 2017 10:33:31 +0000 (12:33 +0200)
js/libs/fluidbook/fluidbook.nav.js

index 224e26e32924bef44d485c0df4b26f4abcef9554..ad17c2cba46615a0abf84d5c0629c8f06d4b035f 100644 (file)
@@ -367,7 +367,7 @@ FluidbookNav.prototype = {
 
                         // 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) {
+                        if (navType == 'menu' && this.fluidbook.datas.chaptersCascade && !this.fluidbook.datas.displayChaptersPopup) {
                             link = this.addLink(navType, 'nav-chapters', '', 'chapters', 'chapters', 'chapters');
 
                             // Get HTML for submenus (appended later)