]> _ Git - fluidbook-html5.git/commitdiff
Match configuration between print and download popups. WIP #2498 @0:05
authorStephen Cameron <stephen@cubedesigners.com>
Thu, 17 Jan 2019 11:11:38 +0000 (12:11 +0100)
committerStephen Cameron <stephen@cubedesigners.com>
Thu, 17 Jan 2019 11:11:38 +0000 (12:11 +0100)
js/libs/fluidbook/fluidbook.print.js

index e11e36f1661c4ea70c6247de526a69b6c5255bd7..a8ea9c25ff437cd2351be514930591a7e5ad588d 100644 (file)
@@ -151,7 +151,7 @@ FluidbookPrint.prototype = {
         }
 
         // Full Brochure
-        if ((mode === 'print' && this.fluidbook.datas.printFullBrochure) || mode === 'download') {
+        if (this.fluidbook.datas.printFullBrochure) {
           view += '<div class="print-option">';
           view += '<label for="allPages">';
           view += '<div class="doubleThumb">';
@@ -184,7 +184,7 @@ FluidbookPrint.prototype = {
         view += '<div class="print-option blank"></div>'; // Extra empty div to ensure flexbox space-between works as expected
 
         // Page range inputs
-        if (mode === 'print' && this.fluidbook.datas.printPageRange) {
+        if (this.fluidbook.datas.printPageRange) {
 
           // leftPageNumber may be false if on first page
           var rangeStart = Math.max(leftPageNumber, 1);