]> _ Git - fluidbook-html5.git/commitdiff
#1790
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Dec 2017 15:52:22 +0000 (16:52 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Dec 2017 15:52:22 +0000 (16:52 +0100)
js/libs/fluidbook/fluidbook.share.js

index 587a44cbdcccc17761168800a0321f0fbdf88fa3..5023fdbd87c21b6075f033df21b784a89775fe80 100644 (file)
@@ -2,16 +2,18 @@ function FluidbookShare(fluidbook) {
     this.fluidbook = fluidbook;
     if (this.isEnabled()) {
         var $this = this;
-        $(document).on('click', '.share', function () {
-            var f = 'send' + ucfirst($(this).data('service'));
-            var url = $(this).data("url");
-            if (url == undefined || url == null || url == 'undefined') {
-                url = '';
-            }
-            $this[f](url);
-            $(this).closest('.mview').find('.back').click();
-            return false;
-        });
+        if (this.fluidbook.datas.phonegap != 'android') {
+            $(document).on('click', '.share', function () {
+                var f = 'send' + ucfirst($(this).data('service'));
+                var url = $(this).data("url");
+                if (url == undefined || url == null || url == 'undefined') {
+                    url = '';
+                }
+                $this[f](url);
+                $(this).closest('.mview').find('.back').click();
+                return false;
+            });
+        }
 
         $(document).on('click touchend', '[data-action="share"]', function () {
             $this.fluidbook.menu.openView("share", $(this).data('extra'));