From 8c8be3f820f0bcd3ca5d338c2d3e053e262ab7a2 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 24 Aug 2018 15:25:08 +0200 Subject: [PATCH] done #2194 @0.75 --- js/libs/fluidbook/fluidbook.background.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.background.js b/js/libs/fluidbook/fluidbook.background.js index 9894a670..bf4b58e1 100644 --- a/js/libs/fluidbook/fluidbook.background.js +++ b/js/libs/fluidbook/fluidbook.background.js @@ -6,10 +6,11 @@ function FluidbookBackground(fluidbook) { FluidbookBackground.prototype = { init: function () { - if (this.fluidbook.datas.links.background != undefined - && this.fluidbook.datas.repeat != Fluidbook.REPEAT - && this.fluidbook.datas.links.background != '' + if (this.fluidbook.datas.links.background !== undefined + && (this.fluidbook.datas.repeat !== Fluidbook.REPEAT || this.fluidbook.datas.tabsHTML5 !== '') + && this.fluidbook.datas.links.background !== '' && this.fluidbook.datas.mobileIgnoreBackgroundLinks === false) { + $("#background").prepend(''); this.hasLinks = true; } @@ -96,7 +97,13 @@ FluidbookBackground.prototype = { scaleX = scaleY = Math.max(scaleX, scaleY); } if ($("#background .links .tabslink").length > 0) { - var transform = {scaleX: scaleX, scaleY: scaleY, translateX: translateX, translateY: translateY, origin: origin}; + var transform = { + scaleX: scaleX, + scaleY: scaleY, + translateX: translateX, + translateY: translateY, + origin: origin + }; $("#background .links").transform(transform).css(css); } } -- 2.39.5