aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* Fix pin clicking on non-/around pages.Matthew Somerville2018-06-07-2/+6
| | | | | The fix in de36c49d1 broke pin clicking on other map list pages, such as /my and /reports.
* Improve inspect form position and configurability.Matthew Somerville2018-06-06-6/+9
| | | | | | Dealing with the map UI changes earlier leads to a better display position, and we add a global variable check to allow cobrands to not use this behaviour. Fixes #1863.
* Fix display going back from report as inspector.Matthew Somerville2018-06-06-1/+5
| | | | | The scroll position wa being remmbered, meaning the full-page map was not being shown correctly.
* Fix pointer event issue selecting pin on map.Matthew Somerville2018-06-06-1/+7
| | | | | | | | | | | | | | | On a mobile device that implements pointer events, there are two events that can happen on an /around page – touching the map starts a new report (or goes back to the map if already on a report page); touching a pin pulls in that report’s page. The map touch, which uses an OpenLayers.Handler.Click, operates on click, whereas the pin touch, which uses an OpenLayers.Handler.Feature, operates on touchstart. Neither event cancels the other, which means you can end up either starting a new report, and then it tries to pull in an undefined pin ID report and errors, or the pin report loads and then you instantly go back to the map page. In order to work around this, we disable the map click control when the feature control event starts, and reactivate once the report data has been loaded.
* [Bromley] Store PROW id in a field if present.Matthew Somerville2018-06-04-1/+11
|
* [Bromley] Handle clicks on TfL road layer.Struan Donald2018-06-04-1/+26
| | | | | | If a TfL road is clicked, but no asset selected, show a message that it might not be a Bromley road and set single_body_only to TfL. Otherwise hide message and set single_body_only to Bromley.
* [Bromley] extra asset layersStruan Donald2018-06-04-0/+103
| | | | | Adds street lights, park bins, trees, rights of way, and TfL red route asset layers.
* Refactor USRN/road code into a Layer class.Matthew Somerville2018-06-04-109/+64
|
* Allow lookup of whether asset selected.Matthew Somerville2018-06-04-5/+10
|
* Ignore non-interactive layers for asset message.Matthew Somerville2018-06-04-0/+3
| | | | | Otherwise a non-interactive layer applying to the same category as an asset layer can cause an ‘undefined’ message to appear.
* Tweak asset message text, allow override.Matthew Somerville2018-06-04-2/+6
|
* Merge branch '2059-back-spinner'Matthew Somerville2018-05-31-5/+17
|\
| * Improve handling of loading spinner display.Matthew Somerville2018-05-31-5/+17
| | | | | | | | | | | | | | | | | | Going back to /around from /report/new can trigger loadend (and the spinner hiding function) twice (if the strategy activation starts a read), with triggerRead aborting that read and triggering the event itself. This means the spinner is not displayed, as the count falls below 0. We could pin the count above 0, but instead let’s log each layer ID while ‘active’ and switch off when they’re all gone.
* | [Zurich] Don't delete extra fields when editing contactDave Arter2018-05-31-0/+7
|/ | | | | | Editing a contact with extra fields would cause those fields to be deleted because they weren't included in the POST request when saving. This change ensures they're present in the DOM, but hidden by default.
* Merge remote-tracking branch 'origin/nicetable-thead-css-bug'Matthew Somerville2018-05-29-1/+1
|\
| * Fix CSS specificity bug with new nicetable hover stylesZarino Zappia2018-05-24-1/+1
| |
* | Fix issues with RTL display/hardcoded directions.Matthew Somerville2018-05-29-96/+72
| |
* | Fix typo in sub-map-link-icon definition.Matthew Somerville2018-05-29-1/+1
|/
* Merge remote-tracking branch 'origin/nicetable-styling'Matthew Somerville2018-05-24-0/+54
|\
| * Reintroduce “nicetable” class for simple table stylingZarino Zappia2018-05-23-0/+54
| | | | | | | | Useful for simple tables like the cookie lists on Privacy Policy pages.
* | [Zurich] Update to new map server.Matthew Somerville2018-05-23-60/+47
| |
* | Escape data attributes in template.Matthew Somerville2018-05-23-0/+6
|/ | | | | | This fixes a bug whereby a double quote in an item would not be JSON-escaped due to being HTML-escaped first, meaning it would not parse as JSON on the client.
* Avoid empty space either side of "key tools" drawer when openZarino Zappia2018-05-21-0/+1
| | | | Fixes #2124.
* [Buckinghamshire] Use tilma.mysociety.org for WFS instead of staging tilmaDave Arter2018-05-14-1/+1
|
* Add UI for selecting multiple wards from /reports/ body pageDave Arter2018-05-14-0/+13
| | | | Fixes mysociety/fixmystreetforcouncils#231
* [fixmystreet.com] Revert #2031 (dual submit buttons on fms.com homepage)Zarino Zappia2018-05-10-79/+0
| | | | Part of #2115.
* [fixmystreet.com] Revert #2032 (big-green-banner a/b test)Zarino Zappia2018-05-10-24/+0
| | | | Part of #2115.
* Only hide deleted rows in contacts table.Matthew Somerville2018-05-08-1/+1
| | | | | Only the contacts table gets a button added to toggle the display of deleted rows; elsewhere the rows need to continue to be shown.
* Simplify .internal-link-fixed-header positioningZarino Zappia2018-05-08-7/+2
| | | | | | | | | | | | | | Since #map_sidebar no longer disappears behind #site_header, there is no need for .internal-link-fixed-header to compensate for the height of the header. Just an arbitrary 2em offset is enough to prevent it butting up against the top of the #map_sidebar scrollable element. Meanwhile, moving the .internal-link-fixed-header anchor element to the top of its parent list item means it no longer has to compensate for the height of the moderation form elements, because those elements (indeed, the entire list item <form>) now comes *after* the anchor. Fixes mysociety/fixmystreet-commercial#1027.
* Merge branch 'drop-ie7'Matthew Somerville2018-05-03-273/+39
|\
| * Fix front page critical CSS loading in IE.Matthew Somerville2018-05-02-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The easy thing first - IE appears to 'stack' :before entries, so if a stylesheet is loaded multiple times (e.g. due to critical CSS loading on the front page), a font-size of 2.5em gets multipled. Switching to rems fixes this. The preload polyfill in IE8/9 loads the base stylesheet as if it were after the layout stylesheet, which breaks the navigation display. The polyfill has a new version which is somewhat simplified, updating the existing <link> rather than creating a new one, so we upgrade to that plus a PR to prevent browser hanging. However, in IE8 this now incorrectly uses the print styles on screen, meaning the navigation and footer disappear. So use an IE conditional comment to just cut IE8 out entirely. This means we can also cut down the polyfill somewhat.
| * Some IE8/old JS workarounds.Matthew Somerville2018-05-02-2/+3
| |
| * Remove unneeded IE8 things.Matthew Somerville2018-05-02-52/+3
| |
| * Fix/tidy front-only hover behaviour.Matthew Somerville2018-05-02-15/+25
| |
| * Drop IE7 support.Matthew Somerville2018-05-02-192/+10
| |
| * Drop unused copy of function.Matthew Somerville2018-04-30-14/+0
| | | | | | | | This is already defined in fixmystreet.utils further up.
* | Update fixmystreet.org link to https.Matthew Somerville2018-05-02-1/+1
|/
* [Rutland] add dark platform logo and use in footerStruan Donald2018-04-25-0/+10
|
* hide deleted contacts by defaultStruan Donald2018-04-23-1/+5
| | | | | | | If JavaScript is enabled hide the deleted contacts from the list on the body page. Display as normal if no JavaScript. Fixes #1962
* Ensure USRN asset lookup JS is run on /report/newDave Arter2018-04-20-9/+41
| | | | | | | | | If the user visits /report/new directly and doesn't change the pin location, then the assets:selected/maps:update_pin events are never fired and fixmystreet.usrn.select is never called. This results in a report whose location was never looked up against the USRN layer, which can cause issues for Open311 endpoints that require a USRN value.
* group the open 311 endpoint options in admin interfaceStruan Donald2018-04-11-0/+5
| | | | | Makes a bit more sense to group those relating to sending/receiving comments together and those relating to fetching comments together.
* Add layer attribution to attribution controlStruan Donald2018-04-10-0/+4
| | | | | If a layer has an attribution option then add it to the attribution control when the layer becomes visible.
* [BANES] add attribution details to road layerStruan Donald2018-04-10-1/+2
|
* [BANES] remove fill from LLPG layer labelsStruan Donald2018-04-10-2/+1
|
* [BANES] Rejig front page layout to put emergency text beneath postcode fieldDave Arter2018-04-10-0/+9
|
* [BANES] Updated header/footer/navigation.Matthew Somerville2018-04-10-90/+543
|
* [BANES] Rename usrn field to site_codeDave Arter2018-04-10-1/+1
| | | | To match the more generic changes in open311-adapter
* [BANES] Add BathNES map type & assetsDave Arter2018-04-10-0/+1938
| | | | | | | | | | | | | BANES have some staff-only assets, so this adds a cobrand hook to enable extra JS to be included on the page for staff users. - Add custom OpenLayers build with GeoJSON support - Add grit bins/street lights/LLPG asset layers - Displays non-BANES street light assets in grey - Add adopted highways to map This means USRNs will be set for reports made by members of the public. To keep the map simple, however, the highways layer is invisible to non-staff users.
* [BANES] Add Bath & North East Somerset cobrandDave Arter2018-04-10-0/+139
|
* Merge branch 'issues/2005-ie-chart-fixes'Matthew Somerville2018-04-10-5/+27
|\