aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/views/submit.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-09 14:52:56 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-09 14:52:56 +0100
commit0bd61cc264657a9881addb0539514670d850b635 (patch)
tree1dab7d68bdba52be64572b418bfe58cc1ac04bc8 /src/js/views/submit.js
parent188e270bbcc5acdd2ddb3698fede9d54cb71e352 (diff)
Put in place timeout for file upload
A timeout mechanism that checks that the file is uploading and if not then bails out, and even if it is bails out after 2 minutes Fixes #87
Diffstat (limited to 'src/js/views/submit.js')
-rw-r--r--src/js/views/submit.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js/views/submit.js b/src/js/views/submit.js
index 1d31098..34aaf83 100644
--- a/src/js/views/submit.js
+++ b/src/js/views/submit.js
@@ -107,13 +107,15 @@
var msg = FMS.strings.unknown_sync_error;
if ( err.errors ) {
msg = msg + ': ' + err.errors;
+ } else if ( options.aborted ) {
+ msg = FMS.strings.upload_aborted;
}
var that = this;
navigator.notification.confirm(
msg,
function(index) { that.handleReportError(index); },
CONFIG.APP_NAME,
- 'Save for Later,Try Again');
+ ['Save for Later','Try Again']);
},
handleReportError: function(index) {