aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/router.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-02 11:01:07 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-02 11:01:07 +0100
commit9f979f491570c6bbff8735bcfa391430543d0041 (patch)
treec6773e651e6cdcc163ea25a8724b1004308bb7cc /www/js/router.js
parenta6dd616d2e6d57e1a7d9ad629b2dfbfc77320bec (diff)
save and load current report on app pause and resume
Diffstat (limited to 'www/js/router.js')
-rw-r--r--www/js/router.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/router.js b/www/js/router.js
index e9bce54..b85b361 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -20,6 +20,12 @@
initialize: function() {
},
+ pause: function() {
+ if (this.currentView && this.currentView.updateCurrentReport) {
+ this.currentView.updateCurrentReport();
+ }
+ },
+
back: function() {
if (this.currentView && this.currentView.prev) {
this.currentView.onClickButtonPrev();