this.fluidbook = fluidbook;
this.chapters = chapters;
this.style = 'classic';
+ this.cascade = this.fluidbook.datas.chaptersCascade;
if (this.fluidbook.datas.mobileChaptersStyle) {
this.style = this.fluidbook.datas.mobileChaptersStyle;
}
},
makeView: function () {
this.makeClassicMenu();
- if (this.fluidbook.datas.chaptersCascade) {
+ if (this.cascade) {
this.makeCascadeMenu();
}
},
if (chapter.page != '') {
var p = this.fluidbook.virtualToPhysical(chapter.page);
if (p === false) {
- href = "nohref";
+ href = this.cascade ? 'href="#"' : "nohref";
} else {
href = 'href="#/page/' + p + '"';
}
} else {
- href = "nohref";
+ href = this.cascade ? 'href="#"' : "nohref";
}
if (this.style == 'classic') {
res += '<li data-level="' + chapter.level + '"><a ' + href + ' class="level' + chapter.level + '">';