]> _ Git - fluidbook-html5.git/commitdiff
wait #5245 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Apr 2022 11:36:40 +0000 (13:36 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Apr 2022 11:36:40 +0000 (13:36 +0200)
js/libs/fluidbook/fluidbook.bookmarks.js
js/libs/fluidbook/fluidbook.tabs.js

index bb799991ca5f2e35be0147b9486daa0fc8c494ec..ec4f9581a6c78580955436090036d92533279c0f 100644 (file)
@@ -43,10 +43,13 @@ FluidbookBookmarks.prototype = {
             if ($this.fluidbook.settings.bookmark_email_body !== '') {
                 body = $this.fluidbook.settings.bookmark_email_body;
             }
+            if(body.indexOf('%link%')===-1){
+                body += $this.fluidbook.l10n.__(": ") +'%link%';
+            }
 
             subject = subject.replace(/\%title\%/gi, $this.fluidbook.settings.title);
             body = trim(body.replace(/\%title\%/gi, $this.fluidbook.settings.title), ' .:');
-            body += $this.fluidbook.l10n.__(": ") + $this.getPDF();
+            body = body.replace(/\%link\%/gi, $this.getPDF());
 
             $this.fluidbook.share.intentShare(subject, body);
             return false;
index 2935c938a58e9a26cd8dbebc064d4a5552790301..0b1d0492553889e844bae9dc84177e2e86c82131 100644 (file)
@@ -424,6 +424,7 @@ FluidbookTabs.prototype = {
         } catch (e) {
 
         }
+
         // Bug #5238 on safari mac
         if (this.fluidbook.support.safari && this.fluidbook.support.macOs) {
             setTimeout(function () {