}
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) {
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) {