From dd79ae8adecac812758b64a4309010eff5dac949 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 11 Dec 2017 16:52:22 +0100 Subject: [PATCH] #1790 --- js/libs/fluidbook/fluidbook.share.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.share.js b/js/libs/fluidbook/fluidbook.share.js index 587a44cb..5023fdbd 100644 --- a/js/libs/fluidbook/fluidbook.share.js +++ b/js/libs/fluidbook/fluidbook.share.js @@ -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')); -- 2.39.5