From 388b1482c84ef111857ef2bb0648ba1f022049f5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 2 Feb 2017 19:03:00 +0100 Subject: [PATCH] wip #1023 @2 --- js/libs/fluidbook/fluidbook.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) { -- 2.39.5