From: Vincent Vanwaelscappel Date: Mon, 11 Oct 2021 13:46:01 +0000 (+0200) Subject: wait #4774 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=aa122b35ddcbbd428adb512095c66ca262f85a3d;p=fluidbook-html5.git wait #4774 @0.25 --- diff --git a/js/libs/fluidbook/menu/fluidbook.chapters.js b/js/libs/fluidbook/menu/fluidbook.chapters.js index c4af374c..9dabd479 100644 --- a/js/libs/fluidbook/menu/fluidbook.chapters.js +++ b/js/libs/fluidbook/menu/fluidbook.chapters.js @@ -3,6 +3,7 @@ function FluidbookChapters(fluidbook, chapters) { this.chapters = chapters; this.style = 'classic'; this.cascade = this.fluidbook.settings.chaptersCascade; + this.indent = !this.cascade && this.fluidbook.settings.chaptersIndent; this.cascadeEventsInited = false; if (this.fluidbook.settings.mobileChaptersStyle) { this.style = this.fluidbook.settings.mobileChaptersStyle; @@ -85,7 +86,7 @@ FluidbookChapters.prototype = { // Columns setup var nbItems = 0; - var columns = Math.max(1,parseInt(this.fluidbook.settings.chaptersColumns)); + var columns = Math.max(1, parseInt(this.fluidbook.settings.chaptersColumns)); $.each(this.chapters, function (k, v) { if (v.label === '--' || v.label === '++') { @@ -136,9 +137,13 @@ FluidbookChapters.prototype = { } var $this = this; - this.html[sub] = '