diff options
author | Struan Donald <struan@exo.org.uk> | 2013-08-15 16:33:29 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-08-15 16:33:29 +0100 |
commit | 9f0d317bd4b1e46e88b3427c1217f914ddddcd3f (patch) | |
tree | 37f007ea567d4f0cf613507d5622746c6dbd8b88 /src/js/app.js | |
parent | e6f671d6f814fe1bed518ffb2858b72f3b85b71f (diff) |
Add in test version warning to initial map page
Warning to say that reports will not be sent to the council to avoid
confusion in advance of beta testing
Fixes #94
Diffstat (limited to 'src/js/app.js')
-rw-r--r-- | src/js/app.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/app.js b/src/js/app.js index 660f689..43218c1 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -51,6 +51,7 @@ var tpl = { isAndroid: false, iPhoneModel: 0, uploadTimeout: CONFIG.UPLOAD_TIMEOUT || 120000, + testing: 0, currentDraft: new FMS.Draft(), allDrafts: new FMS.Drafts(), @@ -241,6 +242,10 @@ var tpl = { FMS.usedBefore = 1; } + if ( CONFIG.TESTING ) { + FMS.testing = 1; + } + document.addEventListener('pause', function() { FMS.locator.stopTracking(); FMS.saveCurrentDraft(); }, false); document.addEventListener('resume', onResume, false); document.addEventListener('backbutton', function(e) { FMS.router.back(e); }, true); |