From f0a9b7c85f0461a0915ed0a4c8d0e64ae237bd41 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 23 Oct 2017 13:50:46 +0200 Subject: [PATCH] wip #1739 @1.5 --- js/libs/fluidbook/fluidbook.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); }, -- 2.39.5