aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/app.js
Commit message (Collapse)AuthorAgeLines
* update Android to Cordova 3.6Struan Donald2015-08-28-336/+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
* use > 7 rather than == 7 to detect iOS7Struan Donald2014-04-01-1/+1
|
* Fix iOS 7 display to clear scroll barStruan Donald2013-09-26-0/+8
| | | | | If iOS7 set a class on the body and then use this to override various styles as well as the position of the map
* Allow details screen to scroll on AndroidStruan Donald2013-09-11-0/+2
| | | | | | | | | | | | | | | | | | | | | This fixes #113 in that it means the user can move the screen to see what fields are available. Previously this was prevented by setting the adjustPan mode for the soft input mode which had fixed a bug with the keyboard not dismissing on transition. This has been resolved by adding a plugin for Android to control display of the soft keyboard and hiding the keyboard before navigation in the navigate method of FMSView. Sadly this then meant that the screen size was being measured *before* the keyboard was dismissed with the result that the screen transitioned too was incorrectly displayed. This was resolved by taking the screen height on start up, storing that as a property of the FMS global object and then using this property instead of measuring the screen size at the time of transition. The map has also been expanded to fill the whole screen rather than stopping at the bottom of the navigation bar as on Android when you scroll the screen the map does not scroll and the gap at the top was visible.
* Make dubug output conditional on a debug flagStruan Donald2013-08-23-1/+7
| | | | | Replace console.log call to a wrapper function that only outputs if we've set a flag in config.
* Do not make initial help full heightStruan Donald2013-08-19-4/+14
| | | | The big chunk of white space at the bottom doesn't look good
* Shorter intro help textStruan Donald2013-08-19-7/+13
| | | | Fixes #100
* Add in test version warning to initial map pageStruan Donald2013-08-15-0/+5
| | | | | | | Warning to say that reports will not be sent to the council to avoid confusion in advance of beta testing Fixes #94
* Fix android 2 scrolling caused by helpStruan Donald2013-08-15-1/+4
| | | | | | | Because the help overlay is not fixed height in android 2 it was causing the screen to be scrollable. Fixed by only showing the help when we actually need to display it and setting it to hidden the rest of the time
* remove debug outputStruan Donald2013-08-14-4/+0
|
* improve post help show callback readabilityStruan Donald2013-08-14-1/+5
|
* change help panel to overlay whole pageStruan Donald2013-08-14-3/+8
| | | | This prevents clicks on things 'behind' the help
* move help content to a templateStruan Donald2013-08-14-1/+4
| | | | Rather than hard coding it into index.html. Loaded by the help init code
* Tweak help panel to work on Android 2Struan Donald2013-08-13-2/+10
| | | | | | | Android 2 doesn't support overflow: scroll so instead make the panel full screen so you are scrolling what seems to be the screen. This means we need to reset scrollTop before hiding it as otherwise the underlying page is also scrolled.
* Scroll help to top once dismissedStruan Donald2013-08-13-1/+1
| | | | | Not sure if this is the correct thing to do but having the help re-appear scrolled to where you left it doesn't feel right.
* Display help the first time the app is runStruan Donald2013-08-12-0/+10
| | | | | | Also record when help has been viewed so we don't display it again. For #92.
* Add a help panel and buttons to access itStruan Donald2013-08-12-0/+40
| | | | | | | Always available, slides in from the side (ish). Content still a work in progress. Needs way to translate it. For #92.
* make photo upload timeout configurableStruan Donald2013-08-09-0/+1
|
* Force saving of draft if removing a photoStruan Donald2013-08-07-2/+2
| | | | | | | | Becuase we don't save drafts that are only a location once you remove the photo from a report that only has a location and a photo that change isn't saved as it becomes a report with only a location hence add a force option so saveCurrentDrafts and use it when removing a photo. Fixes #86
* resize loading screen to remove brown bar at bottom on Android 2Struan Donald2013-08-06-0/+1
|
* remove debug codeStruan Donald2013-08-02-2/+0
|
* detect and store iPhone model version on startupStruan Donald2013-08-01-0/+6
|
* make template language a config optionStruan Donald2013-07-30-1/+1
|
* pass in back button event from handlerStruan Donald2013-07-29-1/+1
| | | | | | | | 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.
* Pause and restart position updating on app pause and resume to stop ↵Struan Donald2013-07-22-2/+10
| | | | backgroud GPS tracking on Android. Fixes #61
* If we have a net connection when we resume then set app to onlineStruan Donald2013-07-19-0/+2
| | | | | mode otherwise it gets stuck in offline mode if it was there before the pause
* set flag on startup to use in checking for AndroidStruan Donald2013-07-16-0/+2
|
* display splash screen on androidStruan Donald2013-07-15-0/+3
|
* instead of using js to inject the correct cordova js file in toStruan Donald2013-07-12-0/+209
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