]> _ Git - fluidbook-html5.git/commitdiff
wip #1023 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 2 Feb 2017 18:03:00 +0000 (19:03 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 2 Feb 2017 18:03:00 +0000 (19:03 +0100)
js/libs/fluidbook/fluidbook.js

index cfd4be830afa13f46002a9b76e0d414cf82c0acf..7c9a509803e032ec5bbc55888fa32b854edf559f 100644 (file)
@@ -1210,14 +1210,14 @@ Fluidbook.prototype = {
         }
         var e = pdf.split('/');
         pdfName = e.pop();
-        if (this.gal && !OFFLINEAPP) {
+        /*if (this.gal && !OFFLINEAPP) {
             this.displayLoader();
             this.gal.downloadAndCall('extras', function () {
                 $this._openFile(pdf, $("#print"), 'pdf', pdfName);
             });
-        } else {
+        } else {*/
             this._openFile(pdf, $("#print"), 'pdf', pdfName);
-        }
+        //}
     },
     _openFile: function (url, e, type, localname) {
 
@@ -1303,7 +1303,6 @@ Fluidbook.prototype = {
             if (types_android[type] != undefined) {
                 this.displayLoader();
                 window.requestFileSystem(LocalFileSystem.TEMPORARY, 0, function (fileSystem) {
-                    var dest = fileSystem.root;
                     window.resolveLocalFileSystemURL(url, function (entry) {
                         window.resolveLocalFileSystemURL(cordova.file.externalDataDirectory, function (dirEntry) {
                             entry.copyTo(dirEntry, 'document.pdf', function (copyEntry) {