aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
Commit message (Collapse)AuthorAgeLines
* Add ‘hide pins’ button to mapDave Arter2018-04-30-11/+16
| | | | Fixes #175.
* Show error to user if registration password is rejected by serverDave Arter2018-04-30-1/+1
| | | | | | | | | This occurs if the password is too short or too common, for example. The user's previously entered password is remembered in the UI. The flow here is not ideal - it would be better to show the error on the same screen as the password field, but that would require a bit more reworking of the code.
* Factor out user title handling codeDave Arter2018-04-30-18/+23
| | | | | | | This ensures all the various SubmitView subclasses set the user title, if required. Fixes #156.
* Allow scrolling on extra details screenDave Arter2018-04-30-0/+17
| | | | Adapted from zurich_mobile 374d5e4.
* Skip extra details screen if emptyDave Arter2018-04-30-2/+12
| | | | | | Some categories have extra fields but they’re all hidden; in this case there’s no point showing the user an empty screen so it’s skipped.
* Don’t skip back twice in navigationDave Arter2018-04-30-2/+4
| | | | | | | On the details extra/certain submit views, clicking the “Back” button would skip back two screens because the event wasn’t cancelled, causing the newly-shown “Back” button to be triggered.
* Handle deletion of multiple photos when deleting draftDave Arter2018-04-30-3/+13
|
* Add multiple photo support to offline viewDave Arter2018-04-30-40/+74
|
* iPhone X supportDave Arter2018-04-30-3/+16
| | | | | | | Adds a correctly-sized splash sceen image and ensures the full viewport is used by the webview, as well as adding sufficient vertical padding based on `safe-area-inset-bottom` CSS variable.
* Add CONFIG.SKIP_CONFIRM_REPORT to skip confirm page if logged inDave Arter2018-04-30-2/+21
|
* Remove iOS status bar height overridesDave Arter2018-04-30-14/+3
| | | | No need to have rules to avoid overlapping the <iOS 7 status bar any more.
* Allow multiple photos with reportsDave Arter2018-04-30-67/+173
| | | | | | | | | | | | A new CONFIG.MAX_PHOTOS setting enables any number of photos to be uploaded. Includes code adapted from from 0ac07c1ea062a68d68d162c3ecdbba7e9da3e4c9 and c207193a0e052ae9e41a6d42e0ac1b704883b25b in zurich_mobile: this is a bit of an abuse of the FileTransfer plugin, which technically doesn't support uploading more than one file at a time. There's no good reason for that though, the HTTP spec allows an arbitrary number of files in a POST request.
* Allow map buffer ratio to be customised.Matthew Somerville2018-04-08-2/+6
|
* Enforce LOGIN_REQUIRED settingDave Arter2018-04-08-28/+55
| | | | | If LOGIN_REQUIRED is true, the app won't let you do anything until you've logged in.
* Add HELP_DISABLED config key to remove help button from UIDave Arter2017-12-01-4/+13
|
* Don’t animate view change if the current view is being reshownDave Arter2017-12-01-1/+1
|
* Fix a couple of typos & deprecated function callDave Arter2017-12-01-3/+3
|
* Make debugging app startup easier by saving debug messagesDave Arter2017-12-01-0/+5
|
* [CuidoMiCiudad] Add back Android platform; show iOS keyboard accessory barDave Arter2017-07-10-0/+1
|
* [CuidoMiCiudad] Add cobrandDave Arter2017-06-22-5/+14
| | | | | | | | | | | | | | | | | This is the companion cobrand for www.cuidomiciudad.do. Whilst primarily providing the templates and styling for the cobrand, this commit also: - gettext-merge to call msgmerge with --no-wrap, matching the fixmystreet code - Allows localisation of several templates and UI components e.g. back buttons: - The back buttons were automatically being generated by jQuery Mobile, which wasn’t using the correct localisation of ‘Back’. Adding them to the DOM explicitly with the correct translation ensures they appear as they should. - Adds a plugin for overriding the iOS display name - Add a plugin for changing the app’s language easily - Makes it easier for cobrands to customise pin icons on the map (CONFIG.PINS)
* Process index.html as template at build timeDave Arter2017-06-22-0/+5
| | | | | | | | There are a few places in index.html that depend on CONFIG in order to load the right cobrand stylesheet/language/map etc. This commit removes the run time script loading and instead processes index.html as a lodash template at build time to pull in the correct stylesheets and scripts.
* Don’t show location error message multiple timesDave Arter2017-06-22-0/+1
|
* Use localised strings.js based on CONFIG.LANGUAGEDave Arter2017-06-22-0/+58
|
* Merge branch 'translation-fixes'masterMatthew Somerville2016-09-13-4/+6
|\
| * Translated "Untitled draft".translation-fixesMatthew Somerville2016-09-05-1/+2
| |
| * Translate "Next" and "More details".Matthew Somerville2016-09-05-3/+4
| | | | | | | | Fixes #231. Fixes #233.
* | just to test in the browser: run without CordovaThomas Tursics2016-06-30-4/+14
|/
* Use OpenStreetMap tiles by default.198-nicerMatthew Somerville2016-05-11-38/+12
| | | | | | Add a MAP_TYPE configuration option to choose what map tiles to use, defaulting to OpenStreetMap. This fixes the issue of people outside the UK getting a grey map.
* Merge remote-tracking branch 'mysociety/cordova-6-fix-double-slash' into ↵Steven Day2016-04-28-6/+6
|\ | | | | | | cordova-6
| * Remove report parsing of photo.cordova-6-fix-double-slashMatthew Somerville2016-04-26-1/+0
| | | | | | | | | | This was not used anywhere, and is no longer returned by the server, as it now returns a photos array.
| * Specify that FMS_URL should not have an end slash.Matthew Somerville2016-04-26-5/+6
| | | | | | | | | | This way round is better in case of URLs returned from the server (e.g. for photos) that will have a starting slash.
* | Merge remote-tracking branch 'mysociety/cordova-6-fix-maps' into cordova-6Steven Day2016-04-28-58/+98
|\ \
| * | Fix displaying of map tiles.cordova-6-fix-mapsMatthew Somerville2016-04-26-58/+98
| |/ | | | | | | | | This updates the map tile code to match the website, allowing easier non-UK usage of Bing Maps by not including the map-fms.js file.
* / Swap the SoftKeyboard plugin for ionic'sSteven Day2016-04-28-36/+1
|/ | | | | | | We already had this plugin to help solve issues with the view scrolling on iOS, and since it offers the same functionality for closing the keyboard as the SoftKeyboard plugin, it makes sense to only use one.
* Stop iOS scrolling the view when the keyboard is shownSteven Day2016-04-26-0/+2
|
* Only provide example config files; add cobrand docs to READMEphonegap-3Dave Arter2015-08-28-17/+17
|
* Allow cobrands to override templatesDave Arter2015-08-28-9/+40
|
* Fix undefined value errorDave Arter2015-08-28-2/+2
|
* Only switch map tiles to Ordnance Survey at higher zoom levels when ↵Dave Arter2015-08-28-3/+3
| | | | CONFIG.isUK is true
* Restore open-in-browser functionalityDave Arter2015-08-28-4/+8
| | | | | The target="_system" syntax no longer works with window.open. Instead a specific InAppBrowser plugin is required.
* Define PositionError object as navigator.geoLocation doesn't define itDave Arter2015-08-28-0/+8
|
* update Android to Cordova 3.6Struan Donald2015-08-28-0/+5902
| | | | | | | | 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
* instead of using js to inject the correct cordova js file in toStruan Donald2013-07-12-6196/+0
| | | | | | | | | | 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
* turn off splash screen fading and add in locating like screens on indexStruan Donald2013-07-10-0/+1
| | | | page and home page to minimise the flickering at start up
* improve layout of drafts screen with icons to indicate if there is aStruan Donald2013-07-09-1/+1
| | | | | photo or location associated with the report. Also make the date a bit friendlier
* Do not save an empty report when suspending the app. Fixes #36Struan Donald2013-07-09-3/+5
|
* set existing page height using minimum heightStruan Donald2013-07-09-0/+4
|
* correct logic in map platofrm check to fail if no device variable definedStruan Donald2013-07-09-2/+2
|
* Fix path for non svg location pin image. Fixes #35Struan Donald2013-07-09-2/+2
|
* set map to fixed in JS as well as cssStruan Donald2013-07-09-1/+1
|