From: Vincent Vanwaelscappel Date: Wed, 27 Sep 2017 12:10:23 +0000 (+0200) Subject: wip #1689 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2127cada277c6a54c3df63bbb2d2954bf14bdb5b;p=fluidbook-html5.git wip #1689 --- diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index a37b9993..f05a43cc 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -842,20 +842,20 @@ Fluidbook.prototype = { if (this.datas.phonegap == 'ios') { this.displayLoader(); if (types_ios[type] != undefined) { - // var offset = $(e).offset(); - // offset.left += ($(e).width() / 2); - // offset.top += ($(e).height()); - /*try { + var offset = $(e).offset(); + offset.left += ($(e).width() / 2); + offset.top += ($(e).height()); + try { ExternalFileUtil.openWith(url, types_ios[type], function () { $this.hideLoader(); }, function () { $this.wopen(url, "_blank", 'location=no'); $this.hideLoader(); }, offset); - } catch (err) {*/ - $this.wopen(url, "_blank", 'location=no'); - $this.hideLoader(); - //} + } catch (err) { + $this.wopen(url, "_blank", 'location=no'); + $this.hideLoader(); + } return true; } }