From 9f979f491570c6bbff8735bcfa391430543d0041 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 2 Apr 2013 11:01:07 +0100 Subject: save and load current report on app pause and resume --- www/js/router.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'www/js/router.js') 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(); -- cgit v1.2.3