From: Vincent Vanwaelscappel Date: Tue, 12 Nov 2013 16:01:24 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a9f64bf749634fe8f64c14e567f6e5b54b0d4c3c;p=fluidbook-html5.git --- diff --git a/js/libs/gal/gal.filesystem.js b/js/libs/gal/gal.filesystem.js index 2bf629a1..6c5f40df 100644 --- a/js/libs/gal/gal.filesystem.js +++ b/js/libs/gal/gal.filesystem.js @@ -204,7 +204,10 @@ var fileTransfer = new FileTransfer(); fileTransfer.download(url, fileEntry.fullPath, function(entry) { lookupTable[key] = entry.toURL(); - callback(); + entry.setMetadata(function(entry) { + callback(); + }, failCallback, {'com.apple.MobileBackup': 1}); + }, failCallback); }, failCallback); }); @@ -251,6 +254,7 @@ var that = this; // And then recreate it var fs = this.fs; + createDir_(fs.root, ROOT_DIR.split('/'), function(res) { // Create a directory for the root of the GAL fs.root.getDirectory(ROOT_DIR, {create: true}, function(dirEntry) { diff --git a/js/main.js b/js/main.js index 41c76bef..29c14a10 100644 --- a/js/main.js +++ b/js/main.js @@ -50,7 +50,6 @@ try { }); function loadPhonegap() { - var cordova = 'data/cordova.js'; var cordovaStorage = window.localStorage.getItem('cordova'); if (cordovaStorage) {