]> _ Git - fluidbook-html5.git/commitdiff
wip #1689
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 27 Sep 2017 12:10:23 +0000 (14:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 27 Sep 2017 12:10:23 +0000 (14:10 +0200)
js/libs/fluidbook/fluidbook.js

index a37b9993509bb3d62606dc5aa22fc17056364d40..f05a43cc6665b6bf8cd5c1ba1fe3d7da7f113190 100644 (file)
@@ -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;
             }
         }