Fluidbook.prototype = {
init: function (datas) {
this.datas = datas;
+ this.singleMode = (this.datas.mobileNavigationType === 'portrait');
+
this.junk = datas.cacheDate;
if (this.datas.landingPage != undefined && this.datas.landingPage != '') {
this.landingpage = new FluidbookLandingPage(this);
this.sound = new FluidbookSound(this);
this.slideshow = new FluidbookSlideshow(this);
+
if (this.datas.basket) {
this.cart = new FluidbookCart(this);
}
this.form == false;
}
this.privacy = new FluidbookPrivacy(this);
+
this.refw = 0;
this.refh = 0;
this.searchString = '';
$("#view").append('<div class="mview" data-menu="index">' + index + '</div>');
// Mark current page
var cp = this.fluidbook.currentPage;
- if (cp % 2 == 1) {
- cp--;
+
+ if (!this.fluidbook.singleMode) {
+ if (cp % 2 == 1) {
+ cp--;
+ }
}
$("#view").find('.doubleThumb[page="' + cp + '"]').addClass('here');
this.fluidbook.bookmarks.updateBookmarks();