aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/router.js
Commit message (Collapse)AuthorAgeLines
* update Android to Cordova 3.6Struan Donald2015-08-28-179/+0
| | | | | | | | Required due to security issue Remove Android directory as no longer required, move src -> www to match standard layout, update .gitignore to avoid including the standard platform files, update README based on Steve's zurich one
* Make dubug output conditional on a debug flagStruan Donald2013-08-23-2/+2
| | | | | Replace console.log call to a wrapper function that only outputs if we've set a flag in config.
* Correctly handle back button on start screensStruan Donald2013-08-23-2/+2
| | | | | | | | On the inital screens the android back button should quit the app, or if on the map screen and you've started a report it should cancel it. Add in a default back method to FMSView and an override method for the map, exising report and offline screens Fixes #117
* Fix race condition when setting currentViewStruan Donald2013-08-23-2/+4
| | | | | | | | | As the front page only serves to work out what to do on load we should never set the currentView to front-page. However, due to execution order what actually happens is that the navigation to the front page completes after the navigation to the actual page displayed. This means that the incorrect currentView is set and the easiest way to fix is to prevent the currentView being set to the front page
* don't use a transition for the offline pageStruan Donald2013-08-07-1/+2
| | | | | | as you only every get to this page from the map it looks weird to transition to the map page and then almost immediately do another transition to the offline page so don't bother
* pass in back button event from handlerStruan Donald2013-07-29-2/+2
| | | | | | | | This is so that the onClickButtonPrev method we eventually pass to requires an event so without having this we were breaking this and causing the back button to do nothing. Fixes #68.
* instead of using js to inject the correct cordova js file in toStruan Donald2013-07-12-0/+176
index.html restructure things so that the common files are a level down and the platofrm specific ones are directly placed in the relevant project. This both makes for less fuss and also avoids the error with Android < v3 instantiating cordova twice. Note that the iOS common assets are included by a build script rather than a symlink as symlinking doesn't seem to agree with Xcode