fullscreen = (w >= ww * 0.9);
break;
case 'index':
- var indexWidth = Math.floor(ww / 230) * 230;
- $(".indexViewHolder").css('width', indexWidth);
if (this.fluidbook.mobilefirst.enabled) {
var cw = 10 + 130 * this.fluidbook.settings.pages;
fullscreen = (cw >= ww * 0.9);
break;
}
+ if ($(".indexViewHolder").length > 0) {
+ var indexWidth = Math.floor(ww / 230) * 230;
+ $(".indexViewHolder").css('width', indexWidth);
+ }
+
var captionHeight = 0;
m.find('.caption, .fixed, .fonctions').each(function () {
captionHeight += $(this).outerHeight();