]> _ Git - fluidbook-html5.git/commitdiff
wip #4253 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 9 Mar 2021 19:30:12 +0000 (20:30 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 9 Mar 2021 19:30:12 +0000 (20:30 +0100)
js/libs/fluidbook/cart/fluidbook.cart.puma.js
style/cart/puma.less

index e9a3b0a27079b99e79cc0eec5b08f9fcd07f7392..adb173bae90094daac19401394c347765ed27596 100644 (file)
@@ -14,6 +14,7 @@ FluidbookCartPuma.prototype = {
             $this.exportPDF();
             return false;
         });
+
         $(document).on('click', '.exportCartXLS', function () {
             try {
                 $this.exportXLS();
@@ -209,7 +210,7 @@ FluidbookCartPuma.prototype = {
                 header: v,
                 key: v,
                 numFmt: fmt[v],
-                style: {numFmt: fmt[v], alignment: {vertical: 'top', horizontal: 'left'}},
+                style: {numFmt: fmt[v], alignment: {vertical: 'middle', horizontal: 'left'}},
                 width: widths[v] * 4,
                 height: 4,
 
@@ -305,16 +306,4 @@ FluidbookCartPuma.prototype = {
         s = s.replace(/\s/g, '');
         return parseInt(s);
     },
-};
-
-async function readFileAsDataURL(file) {
-    let result_base64 = await new Promise((resolve) => {
-        let fileReader = new FileReader();
-        fileReader.onload = (e) => resolve(fileReader.result);
-        fileReader.readAsDataURL(file);
-    });
-
-    console.log(result_base64); // aGV5IHRoZXJl...
-
-    return result_base64;
-}
\ No newline at end of file
+};
\ No newline at end of file
index b86ee4bc110b45f90b32427491ee877a3971e480..063b3444cad88da6a7eb5b1b54fe02d9ef1b958d 100644 (file)
@@ -3,6 +3,12 @@
     margin-top: 10px;
     text-transform: uppercase;
   }
+
+  .exportCartXLS {
+    .msie & {
+      display: none;
+    }
+  }
 }
 
 [data-type="7"] {