From: Vincent Vanwaelscappel Date: Fri, 5 Mar 2021 15:53:36 +0000 (+0100) Subject: wait #4334 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=59d52f880b189d121bf9bd1e734f1d7d2a79d96f;p=fluidbook-html5.git wait #4334 @0.75 --- diff --git a/js/libs/fluidbook/cart/fluidbook.cart.grandvision.js b/js/libs/fluidbook/cart/fluidbook.cart.grandvision.js index 8c547cef..7101306e 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.grandvision.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.grandvision.js @@ -149,7 +149,7 @@ FluidbookCartGrandVision.prototype = { getExportFileName: function () { var date = new Date(); - return 'GrandVision boxes - ' + date.getFullYear() + '-' + date.getMonth() + '-' + date.getDay(); + return 'GrandVision - ' + date.getFullYear() + '-' + date.getMonth() + '-' + date.getDay(); }, exportBoxes: function (print) { @@ -162,14 +162,16 @@ FluidbookCartGrandVision.prototype = { var c = $('#grandvision-pdf'); $(c).html(''); $.each(this.boxes, function (index, box) { - $(c).append($this.getBox(index)); + if (index === $this.boxIndex) { + $(c).append($this.getBox(index)); + } }); var element = $(c).get(0); var options = { margin: 0, - filename: this.getExportFileName() + '.pdf', + filename: this.getExportFileName() +'s.pdf', image: {type: 'png'}, html2canvas: {dpi: 150, scale: 2.5, letterRendering: false}, jsPDF: {unit: 'mm', format: 'A4', orientation: 'portrait'} @@ -361,7 +363,7 @@ FluidbookCartGrandVision.prototype = { $.confirm({ backgroundDismiss: true, title: 'Warning', - content: 'Product already used in another box:
'+found.join('
'), + content: 'Product already used in another box:
' + found.join('
'), buttons: { confirm: { text: 'Confirm',