diff --git a/www/common/make-backup.js b/www/common/make-backup.js index bcabd9be6..4805aaba5 100644 --- a/www/common/make-backup.js +++ b/www/common/make-backup.js @@ -126,7 +126,7 @@ define([ updateProgress.progress(data.progress); if (data.progress === 1) { handler.stop(); - updateProgress.progress2(1); + updateProgress.progress2(2); } }); ctx.get({ @@ -142,6 +142,7 @@ define([ var dl = function () { saveAs(res.data, Util.fixFileName(name)+(res.ext || '')); }; + updateProgress.progress2(1); cb(null, { metadata: res.metadata, content: res.data, @@ -199,9 +200,16 @@ define([ }); }; + var timeout = 60000; + // OO pads can only be converted one at a time so we have to give them a + // bigger timeout value in case there are 5 of them in the current queue + if (['sheet', 'doc', 'presentation'].indexOf(parsed.type) !== -1) { + timeout = 180000; + } + to = setTimeout(function () { error('TIMEOUT'); - }, 60000); + }, timeout); setTimeout(function () { if (ctx.stop) { return; } diff --git a/www/common/sframe-common-file.js b/www/common/sframe-common-file.js index 1286da14d..a6b097876 100644 --- a/www/common/sframe-common-file.js +++ b/www/common/sframe-common-file.js @@ -636,6 +636,11 @@ define([ var updateDecryptProgress = function (progressValue) { var text = Math.round(progressValue * 100) + '%'; text += progressValue === 1 ? '' : ' (' + Messages.download_step2 + '...)'; + if (progressValue === 2) { + Messages.download_step3 = "Converting..."; // XXX + text = Messages.download_step3; + progressValue = 1; + } $pv.text(text); $pb.css({ width: (progressValue * 100) + '%' diff --git a/www/sheet/export.js b/www/sheet/export.js index 3b4bbae8c..58ef4a712 100644 --- a/www/sheet/export.js +++ b/www/sheet/export.js @@ -14,6 +14,7 @@ define([], function () { var blob = new Blob([u8], {type: "application/bin;charset=utf-8"}); cb(blob); }, { + timeout: 600000, raw: true }); };