aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
Commit message (Collapse)AuthorAgeLines
* update Android to Cordova 3.6Struan Donald2015-08-28-5891/+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
* Fix help visibility check for back button handlerStruan Donald2014-06-03-1/+1
| | | | | | | The help screen is actually always visible so this was preventing the back button exiting the app on the home screen on Android. Fixes #162
* Need to confirm title on password screen as wellStruan Donald2014-04-03-0/+10
| | | | | Yet another place where we confirm the name and hence need to confirm the title if required
* Hide any alert messages if the user scrolls the mapStruan Donald2014-04-01-0/+3
| | | | For #160
* use > 7 rather than == 7 to detect iOS7Struan Donald2014-04-01-1/+1
|
* If help is visible then the back button hides itStruan Donald2014-01-09-1/+3
| | | | Fixes #158
* Fix variable name typo so it submits with user title if presentStruan Donald2014-01-09-2/+2
| | | | Fixes #159
* Do not focus on search box on first loadStruan Donald2013-10-03-1/+5
| | | | The cursor shows through the help overlay
* Fix iOS 7 display to clear scroll barStruan Donald2013-09-26-2/+14
| | | | | If iOS7 set a class on the body and then use this to override various styles as well as the position of the map
* Reduce the size of the photos we useStruan Donald2013-09-24-2/+4
| | | | | This helps to stop crashes on Android when taking photos due to out of memory issues
* split out photo option setting to a methodStruan Donald2013-09-24-2/+26
| | | | To remove duplication of option setting
* Save the current user as we goStruan Donald2013-09-19-0/+6
| | | | | | | This means that if something happens to interrupt the reporting process then any user details entered are not frustrating lost. Fixes #140
* Change initial map page if locating draft with no locationStruan Donald2013-09-18-5/+15
| | | | | | | | Only display the cancel button in the toolbar, use a different button with different text to indicate you are adding a location to an existing report Fixes #138
* Do not show relocate if search errors visibleStruan Donald2013-09-18-1/+3
| | | | Fixes #136
* clear search errors when starting new reportStruan Donald2013-09-18-0/+1
| | | | Fixes #136
* Send 0 or 1 to server for may_show nameStruan Donald2013-09-18-1/+1
| | | | | Otherwise may_show_name is always set to true on server Fixes #135
* Save last show name publicly statusStruan Donald2013-09-17-3/+6
| | | | | | | Stops people who never want to show their name having to click the option every time. Fixes #134
* Location instead of positionStruan Donald2013-09-16-2/+2
| | | | For consistency
* remove debug codeStruan Donald2013-09-16-1/+0
|
* Remove hardcoded position result strings from offline pageStruan Donald2013-09-16-2/+4
|
* Change photo page title if report has a photoStruan Donald2013-09-16-0/+5
| | | | | | | | Also update it when adding a photo to give an indication that adding the photo was succesful. This is to remove any confusion about whether the photo on the page has been added. Fixes #130
* Add note about confirmation to login errorsStruan Donald2013-09-12-2/+2
| | | | | | | Just to make it obvious you need to click the confirmation link to set activate the password Fixes #124
* prevent map zoom snapback effectStruan Donald2013-09-11-0/+25
| | | | | | | | | | Overload PinchZoom control to check if we are at the limits of zoom and if so ignore any pinch zoom that tries to go past those limits. This stops the visual glitch of the zoom sort of working and then snaping back and also gives a visual indication of when the zoom limits have been reached. Fixes #118
* Allow details screen to scroll on AndroidStruan Donald2013-09-11-7/+44
| | | | | | | | | | | | | | | | | | | | | 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.
* Scale photos to roughly 3 MPStruan Donald2013-09-09-2/+2
| | | | | | | | | This should both stop issues with memory on phones and also reduce upload size. Will cause upscaling on phones with < 3MP cameras. 3MP picked as a compromise between quality and file size. Should fix #121
* delay display of photo delete buttonStruan Donald2013-08-23-2/+2
| | | | Stops it appearing on the screen before the photo and looking odd
* Make dubug output conditional on a debug flagStruan Donald2013-08-23-24/+30
| | | | | Replace console.log call to a wrapper function that only outputs if we've set a flag in config.
* remove unwanted debug statementsStruan Donald2013-08-23-6/+0
|
* Correctly handle back button on start screensStruan Donald2013-08-23-2/+26
| | | | | | | | 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
* Reverse direction of locator progress indicatorStruan Donald2013-08-22-1/+1
| | | | Fixes #90
* Change position of remove photo buttonStruan Donald2013-08-21-3/+3
| | | | | | | To stop it accidentally being mistaken for the next action button move the photo button to be a red X button in the lower right corner of the photo. Fixes #112
* Stop running locate progress indicator when hiddenStruan Donald2013-08-20-0/+3
| | | | | If the locating screen isn't visible then the locating process has stopped so we should stop trying to update the progress indicator
* Only call content hide before displaying pageStruan Donald2013-08-20-2/+6
| | | | | | | Previously the content hiding code was also called when you left either of the text fields which meant that when you e.g. dimissed the keyboard the page content vanished. Fixes #103
* Replace view report link with a button on final screenconfirm-screen-buttonsStruan Donald2013-08-20-0/+7
| | | | Link is inconsistent with the rest of the app.
* Add a start new report button to final screenStruan Donald2013-08-20-0/+1
| | | | For clarity
* Remove next button from confirm location screenStruan Donald2013-08-20-5/+2
| | | | | | | Potentially confusing to user that there is a confirm location and a next button and as they do the same remove the most ambigously titled one. Fixes #105
* Remember user's name once enteredStruan Donald2013-08-19-0/+4
| | | | Fixes #102
* Reset submission type on choices screenStruan Donald2013-08-19-1/+6
| | | | | Removes problems with starting one type of submission, going back and the state not being properly cleared
* 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-8/+13
| | | | Fixes #100
* Hide errors on submit login password pageStruan Donald2013-08-16-0/+2
| | | | Otherwise they are still there if you are asked to confirm your name
* Correctly close location error message tagStruan Donald2013-08-15-1/+2
|
* Improve geolocation failed error messageStruan Donald2013-08-15-1/+1
| | | | Fixes #96
* Geolocation error was never shown if accuracy check failedStruan Donald2013-08-15-3/+2
| | | | | | If we got a geolocation fix but not one that met the accuracy check then the locating screen was being hidden but the error message was never being displayed.
* 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
* Better name and even less duplicate code for first time help displayStruan Donald2013-08-14-10/+7
|
* Refactor first time help showing code to a methodStruan Donald2013-08-14-4/+7
| | | | For the reduction of duplicate code
* remove debug outputStruan Donald2013-08-14-4/+0
|