diff options
author | Struan Donald <struan@exo.org.uk> | 2012-10-26 10:48:54 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-10-26 10:48:54 +0100 |
commit | b603eb98165fbba84227bacad5873a82e7e53479 (patch) | |
tree | 29152de4b468dca4ace450c4fc0e84504eaa5fc5 /www/js | |
parent | 71d689b6b43f1632aaba62e9999fb8ed887aaf78 (diff) |
move the report url generation into a pageshow handler
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/mobile.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js index 6d41956..8ad9908 100644 --- a/www/js/mobile.js +++ b/www/js/mobile.js @@ -490,3 +490,8 @@ $(document).bind('pageinit', function() { }); document.addEventListener("deviceready", onDeviceReady, false); + +$(document).delegate('#report-created', 'pageshow',function() { + var uri = CONFIG.FMS_URL + 'report/' + localStorage.report; + $('#report_url').html( '<a href="' + uri + '">' + uri + '</a>' ); +}); |