From: Vincent Vanwaelscappel Date: Thu, 2 Feb 2017 18:03:00 +0000 (+0100) Subject: wip #1023 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=388b1482c84ef111857ef2bb0648ba1f022049f5;p=fluidbook-html5.git wip #1023 @2 --- diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index cfd4be83..7c9a5098 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -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) {