]> _ Git - fluidbook-html5.git/commitdiff
Fix #2568 @0.25
authorStephen Cameron <stephen@cubedesigners.com>
Tue, 5 Feb 2019 11:22:53 +0000 (12:22 +0100)
committerStephen Cameron <stephen@cubedesigners.com>
Tue, 5 Feb 2019 11:22:53 +0000 (12:22 +0100)
js/libs/fluidbook/fluidbook.bookmarks.js

index ed96ad3bc340a3a7f3530b813bc6a39baf91d1df..1fdabe77556a0296584c17782ba3d6a3ab0658eb 100644 (file)
@@ -50,13 +50,13 @@ FluidbookBookmarks.prototype = {
             return false;
         });
 
-        $(document).on('click', '.bookmarkssub a.print', function () {
+        $(document).on('click', '.bookmarkssub a.download', function () {
             $(this).data('ios-preview', '1');
             if (!navigator.onLine && $this.fluidbook.datas.phonegap) {
                 $this.fluidbook.alertInternetRequired();
                 return false;
             }
-            $this.openPDF($(this), true);
+            $this.openPDF($(this), false);
             return false;
         });
 
@@ -480,7 +480,7 @@ FluidbookBookmarks.prototype = {
         }
         if (this.fluidbook.datas.print || this.fluidbook.datas.pdf) {
             // ToDo: differentiate between download & print?
-            index += '<a class="print" href="#">' + downloadLabel + '</a>';
+            index += '<a class="download" href="#">' + downloadLabel + '</a>';
         }
         index += '</div>';
         index += '</div>';