From: Vincent Vanwaelscappel Date: Mon, 23 Oct 2017 11:50:46 +0000 (+0200) Subject: wip #1739 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f0a9b7c85f0461a0915ed0a4c8d0e64ae237bd41;p=fluidbook-html5.git wip #1739 @1.5 --- diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index c547a3bb..12ef1584 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -491,7 +491,7 @@ Fluidbook.prototype = { } } - var center = !!this.datas.centerBook && !this.displayOnePage; + var center = this.centerBook(); res.center = 0; if (center) { if (newPage <= 1) { @@ -505,6 +505,11 @@ Fluidbook.prototype = { res = json_parse(JSON.stringify(res)); return res; }, + + centerBook: function () { + return !!this.datas.centerBook && !this.displayOnePage && $('.tabslink').length == 0; + }, + reloadCurrentPage: function () { this.pageTransition(this.currentPage); },