aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
Commit message (Collapse)AuthorAgeLines
* Merge branch 'fix-dupes-'Matthew Somerville2019-10-15-3/+6
|\
| * Fix issue loading inspector duplicates on /around.Matthew Somerville2019-10-15-3/+6
| | | | | | | | | | | | As there are two category drop-downs in this situation (one in the hidden reporting form, one in the inspect form), the correct entry needs to be specified.
* | Add map filter debouncing.Matthew Somerville2019-10-15-2/+15
|/
* Only show duplicate suggestions once per category change on mobileDave Arter2019-10-07-2/+22
|
* Dismiss duplicate selection UI when returning to map on mobileDave Arter2019-10-07-0/+6
|
* Merge branch 'zurich-staging'Matthew Somerville2019-09-30-23/+15
|\
| * [OpenLayers] Never send X-Requested-With header.Matthew Somerville2019-09-30-0/+15
| |
| * [WMTS] Remove unneeded reprojection code.Matthew Somerville2019-09-30-23/+0
| | | | | | | | | | The base layer does this transformation, so I am not sure what this was for.
* | [IsleOfWight] fix wmts bbox strategy settingStruan Donald2019-09-27-2/+2
| | | | | | | | | | | | Change the way we set the BBOX strategy for the map layer as otherwise when we check for bbox_strategy in display_around this is set but has not been associated with a layer so .activate fails.
* | [IsleOfWight] switch to IoW map tilesStruan Donald2019-09-27-0/+206
|/
* Merge branch 'bexley-map-tiles'Matthew Somerville2019-09-19-0/+24
|\
| * [Bexley] Add new map tiles.Matthew Somerville2019-09-19-0/+24
| |
* | Remove on-map permalink.Matthew Somerville2019-09-19-41/+8
|/ | | | We retain the code as it is updating the URL on map move.
* Maintain filter_category/group if locate me used.Matthew Somerville2019-08-16-1/+1
| | | | Also update lat/lon parameters to match JS.
* Merge branch 'issues/commercial/1480-asset-duplicate-interaction'Matthew Somerville2019-08-08-1/+17
|\
| * Have duplicate suggestion & assets coexist better.Matthew Somerville2019-08-07-1/+17
| |
* | Hide category extras when dupe suggestions shown.Matthew Somerville2019-08-07-0/+2
|/
* prevent including email address in report titleStruan Donald2019-08-02-1/+1
| | | | | | | | If autofill on Chrome is turned on and has saved the user's login it can autofill the user's email address in the report title, so add validation to make sure the title does not look like an email. Fixes #2570
* Improve map JavaScript defensiveness.Matthew Somerville2019-07-10-0/+13
| | | | | Add more checking for map things so e.g. on a skipped map page we stop getting JavaScript errors given there is no map present.
* [Hounslow] Use custom WMTS base mapDave Arter2019-06-04-0/+194
|
* Have duplicate and asset messages work together.Matthew Somerville2019-05-28-2/+13
|
* Do not focus on title on duplicate list removal.Matthew Somerville2019-05-28-14/+3
| | | | | Sometimes this can be a long way down, if e.g. extra Open311 questions above.
* [Buckinghamshire] use buckinghamshire map tilesStruan Donald2019-05-16-0/+147
| | | | | Add a WMTS config to use Buckinghamshire's own map tiles to display house numbers.
* Tidy up duplicate fetching code.Matthew Somerville2019-03-28-26/+8
| | | | | | Run immediately, not onready, so the category change listener is in place; listen to a better event, removing need for a debouncer; don't look up if empty category.
* Listen for all inspector form duplicate events.Matthew Somerville2019-03-06-2/+2
| | | | | | The form may be brought in via JS, so we have to add an event to something that will always be there (or alternatively set up when pulled in, which was the old pre-duplicates.js behaviour).
* [Bromley] Initial heatmap page.Matthew Somerville2019-02-28-1/+8
|
* Duplicate suggestion UI when reporting problems.Zarino Zappia2019-02-25-4/+210
| | | | | | | | | | | | | | | | | | The previously staff-only fixmystreet.set_up.manage_duplicates() has been promoted from staff.js to its own file so that we can use it to display the duplicate suggestions on the `/report/new` form. render_duplicate_list (the old refresh_duplicate_list) no longer filters or slices the reports_list returned by the ajax call, since it turns out the server handles all of that (`sub _nearby_json` in `Report.pm` and `sub nearby` in `Nearby.pm`). Since the expandable list items include the "fancybox" image previews, the fancybox CSS now has to be included in the `/report/new` page head, hence the addition of "photo-js.html" in `fill_in_details.html`. The “Get updates” flow reuses the same JavaScript that handles the submission of the "Get updates" drawer at the bottom of around pages.
* Add parameter to URL when “Show older” clicked.Matthew Somerville2019-02-14-2/+1
| | | | | The behaviour should be the same whether “Show older” or “Show older reports” is clicked, but only the latter was updating the URL.
* Fix typo in d4c2211cf.Matthew Somerville2019-02-13-1/+1
|
* Improve use of OL ArgParser/missing zoom in URL.Matthew Somerville2019-02-04-16/+24
| | | | | | Remove the server-side zoom-in-url fix, instead use an ArgParser subclass to default to the provided data if nothing in URL. Then we can switch to using short lat/lon in geocoder URLs.
* Update URL whenever map moves, using replaceState.Dave Arter2019-02-04-16/+51
| | | | | | Fixes #2242. Co-authored-by: Matthew Somerville <matthew@mysociety.org>
* Make staff JavaScript more self-contained.Matthew Somerville2019-01-29-2/+2
| | | | So it can run even when fixmystreet.js is not loaded.
* Make who question more prominent.Matthew Somerville2018-12-19-0/+14
|
* [UK Councils] Fix undefined body_validation_rules.Matthew Somerville2018-12-11-2/+0
| | | | The core validation_rules.js is not included on e.g. the front page.
* Don't draw a pin for a problem with no location.Martin Wright2018-12-03-0/+3
|
* Restore zoom level when navigating back to /around from /reportDave Arter2018-11-27-0/+16
| | | | Fixes #1649.
* [UK] council specific javascript validationStruan Donald2018-11-26-1/+5
| | | | | | | | | use the bodies array of reporting_data to check if there is council specific javascript validation and, if so, load that into the JS validation rules. This does mean we reset the validation rules each time you select a category.
* Disable two-tap marker highlighting on touchscreensDave Arter2018-11-22-11/+14
| | | | Fixes #2294
* [UK] send reports on highways agency roads to highways agencyStruan Donald2018-11-19-2/+6
| | | | | | | Includes an option to send to the council instead for e.g. reports on underpasses or bridges. Fixes #736
* Update any lat/lon fields when changed.Matthew Somerville2018-11-09-2/+2
| | | | | Cobrands might include the fields elsewhere, e.g. in moderation. Also only use 6 decimal places.
* Fix history API bug.Matthew Somerville2018-10-02-9/+17
| | | | | | replace_query_parameter() was stringifying select multiples, meaning they were incorrectly recorded by the pushState and thus breaking on navigation.
* Clicking "Report" header links on homepage focusses #pc inputZarino Zappia2018-09-19-1/+13
| | | | | | | Works for both the "Report" button shown in the mobile header, and the "Report a problem" span on the desktop site. Thanks to Louise for suggesting this in mysociety/collideoscope#42!
* Avoid exception if homepage does not include a .report-a-problem-btnZarino Zappia2018-09-19-1/+1
| | | | | | | | Some cobrands (like Collideoscope) don’t have a .report-a-problem-btn in their mobile nav menu, so .querySelector() would raise an exception when we tried to attach an event listener to it. Now we check that the element exists before attaching the listener.
* Handle MultiPolygon geometries for boundary on /reportsDave Arter2018-09-17-1/+2
|
* .js-make-bar-chart now accepts custom chart/bar dimensionsZarino Zappia2018-09-13-2/+4
| | | | | | We needed this for Collideoscope, where we’re displaying small bar charts on the Statistics page, and the default bar height of 30px was much too small when the chart was reduced in size.
* make fixed reports line on reports graph optionalStruan Donald2018-09-12-11/+16
| | | | | Collideoscope doesn't have fixed reports so only add a line for fixed reports if there is data.
* do not generate labels for empty dashboard graphsStruan Donald2018-09-12-0/+3
| | | | | Avoid a JS error if a line graph has no points. This is mostly useful for collideoscope where we only want to show one line.
* Fix inspector dragging of pins.Matthew Somerville2018-08-09-4/+10
|
* [UK] OS map only shown from zoom 12+.Matthew Somerville2018-08-09-1/+1
| | | | Bing no longer shows it at zoom level 11.
* Merge remote-tracking branch 'origin/2012-new-report-near-here'Matthew Somerville2018-08-07-0/+16
|\