aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
Commit message (Collapse)AuthorAgeLines
* Patch Dropzone to correctly orient preview images.Matthew Somerville2016-07-06-2/+190
| | | | | | Include a patch file, applied to Dropzone as of version e524e03c, that also includes our previous Opera patch from 445e9a3d. The new minified file is our cut-down exif.js plus the patched dropzone.js.
* Don't update the map pins if a new report started.Matthew Somerville2016-07-06-0/+11
|
* Update OpenLayers 2 to master branch.Matthew Somerville2016-05-27-294/+382
| | | | Specifically to get the https://github.com/openlayers/ol2/pull/1418 fix.
* Improve in-place moderation UIZarino Zappia2016-05-18-2/+11
| | | | | | | | | | | This rearranges the moderation UI into logical chunks, and improves the 'revert to original' checkboxes by: - hiding them unless there's some original text to revert to - displaying the text that will be reverted to in the appropriate input fields when checked. Part of mysociety/FixMyStreet-Commercial#731
* Increase pixel tolerance of map click handler.Matthew Somerville2016-05-17-1/+1
|
* Update OpenLayers to fix Google Maps layer.Matthew Somerville2016-05-17-279/+364
| | | | This uses the master branch of OpenLayers 2.
* Merge branch '1383-remove-dead-projects'Matthew Somerville2016-04-22-40/+1
|\
| * Remove final web/fixmystreet templates.Matthew Somerville2016-04-20-39/+0
| | | | | | | | And associated, e.g. nothing references fixmystreet-old-box.js any more.
| * Remove some unused cobrands.Matthew Somerville2016-04-20-1/+1
| |
* | Add Twitter social login.Matthew Somerville2016-04-08-1/+1
|/
* [Zurich] Use protocol relative map tiles.Matthew Somerville2016-03-30-2/+2
|
* Switch list item heading from h4 to h3.Matthew Somerville2016-03-30-6/+6
| | | | This stops the front page header nesting skipping a level.
* [Angus] Add clickable street light layer to report mapDave Arter2016-03-29-0/+732
| | | | | | | | | | | | | | | | | Angus provide a WFS endpoint for their existing streetlight assets and known faults. This commit: - Displays clickable markers when the 'street lighting' category is selected on the report a problem page. - Displays known faults on the map - Includes a custom OpenLayers build for the Angus cobrand that includes WFS support The custom code for adding the layers to the map is within position_map.js, as this seemed to be currently the best place for cobrand-specific map logic.
* Preserve category when clicking elsewhere on mapDave Arter2016-03-29-0/+4
| | | | | | | Because the list of categories is reloaded when changing the location of an in-progress report, it was possible for the category the user had selected to be un-selected. This improves the situation by re-selecting that category if it appears in the new list.
* Make sure top of reporting form is shown.Matthew Somerville2016-03-09-0/+1
| | | | | | If the list of reports was scrolled and then the map was clicked, the form would be pre-scrolled down. It now makes sure to scroll the form to the top. Fixes #787.
* Remove auto-scrolling of sidebar on pin hover.Matthew Somerville2016-03-09-20/+0
| | | | | This was added along with pin/sidebar highlighting in b71d042e, but has proved distracting/confusing.
* Really stop map strategy update firing too often.Matthew Somerville2016-02-09-0/+12
| | | | | | | It turns out the strategy was still firing even with correctly rounded co-ordinates from getMapBounds, as there were still rounding errors introduced by the two differing ways of calculating the map bounds. We override one function to always equal the results of the other method.
* Stop map strategy update firing too often.Matthew Somerville2016-02-09-1/+16
|
* Clearer relationship between map pins/list items.Zarino Zappia2016-02-09-29/+116
| | | | | | | | | | | | | | | | | | | Hovering over map pins highlights the relevant item from the sidebar beside the map. And hovering a sidebar item highlights the relevant map pin. Clicking a map pin takes you directly to the relevant report page, just like clicking an item in the sidebar. This means the OpenLayers popup "balloon" no longer appears on clicking a pin, and has been removed entirely. To make customisation of the list item hover colour easier, it has been abstracted out into a SCSS variable that cobrand authors should override (as the fixmystreet.com cobrand does) or leave at its default light grey colour. Fixes #1094.
* Blacklist Opera Mini on Windows Phone in uploader.Matthew Somerville2016-01-29-2/+2
| | | | | | | | | | | We had a report that our file uploader (dropzone) wasn't working in Opera on a Lumia Windows phone. It looks like this version of Opera is saying it has capability but doesn't. The file uploader already blacklists Opera 12 on a Macintosh, so do the same on Windows Phone (Opera Mini 9 has a version 12 identifier in its user agent string). The full User Agent string was Opera/9.80 (Windows Phone; Opera Mini/9.0.0/37.7751; U; en) Presto/2.12.423 Version/12.16
* Add login by Facebook on generic auth screen.Matthew Somerville2016-01-22-0/+1
|
* Add login by Facebook when updating.Matthew Somerville2016-01-22-0/+1
| | | | Makes the flow more like new reporting.
* Add login by Facebook when reporting.Matthew Somerville2016-01-22-0/+4
|
* Add multiple photo upload support.Zarino Zappia2015-12-16-0/+2
| | | | | | | | | | Three file inputs, progressively enhanced with dropzone. This moves the photo input higher up, so that photos can upload while you're filling out the form. It standardises and improves photo error handling. [fixmystreet.com] Guidance for what photos should and shouldn’t include.
* Default the Google map view to hybrid (again).Matthew Somerville2015-12-05-5/+5
| | | | | | | | | | | | | | A repeat of cc6a278; Google have now dropped version 3.20 of their Maps API, which we were using. Version 3.21 is the oldest available version, and only appears to work if you start off in hybrid view. According to https://developers.google.com/maps/documentation/javascript/versions, in three months 3.21 will be dropped; 3.22 does not currently work with our OpenLayers code at all. Looking at http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/google-v3.html the maps do still appear if you first switch to the Satellite layer. So investigation will be needed to find out why that happens and if it can be worked around.
* Improve item list CSS.Matthew Somerville2015-10-09-1/+1
| | | | | | | | | | | | Generally, a rewrite of issue-list-a to item-list--reports or item-list--wards (two different uses) and issue-list to item-list--updates, with subsequent renames/changes to children. For those cobrands using a different list showing a pin icon, use item-list__item--with-pin to stop needing to override existing classes. Fix a variety of niggling issues e.e ward list display, or overloading of the .text class.
* Add state/category filters to base cobrand.Matthew Somerville2015-10-07-4/+1
| | | | | | | This removes the on map/nearby tabs, replacing them with one combined list. The styling is moved to the base, so that it is used on mobile too. A closed option is added to the existing dropdown, and the base/fixmystreet my templates are also combined. Fixes #1141.
* Fix lint issues in moderate.js.Matthew Somerville2015-10-07-6/+6
|
* [Zurich] Use new map tiles up to 1:250Dave Arter2015-10-06-19/+152
| | | | | - Refactor map tile size into a constant - Update map tiles to use new Zurich WMTS server directly instead of Apache proxy
* Allow Google map/hybrid initial view to be chosen.Matthew Somerville2015-09-17-8/+16
| | | | | The GoogleOL layer will default to map, unless the fixmystreet_google_default variable is set to 'satellite'.
* Show report details more clearly on questionnaire pageZarino Zappia2015-09-17-7/+7
| | | | Fixes #1104.
* Update JavaScript to handle right-to-left layout.Matthew Somerville2015-09-17-13/+3
|
* Use Modernizr to decide whether to show mobile mapMatthew Somerville2015-09-17-4/+4
| | | | Fixes #1192.
* Fix location bug fetching category extras.Matthew Somerville2015-09-01-7/+2
| | | | | On a form, except one where you skipped the map, the category change call would use the initial map centre, rather than the map pin location.
* Merge branch 'issues/#805-name-check-cobrand'Matthew Somerville2015-07-31-4/+0
|\
| * Move Latin-char-specific name check to cobrand.Matthew Somerville2015-07-31-4/+0
| | | | | | | | | | Also move some UK-specific code in the same function. The specific code is still tested in report_new.t.
* | Allow body external URL to be edited in admin.Matthew Somerville2015-07-30-1/+1
|/
* Drop show-admin-notes class and show notes everywhereSteven Day2015-07-29-25/+23
| | | | | | | | | | | | | | | | .show-admin-notes was a class that could be applied on a cobrand basis to turn on or off the showing of admin notes and error messages. This was introduced when the concept of admin notes was added, so that existing cobrands could opt-in to the functionality. Now, every cobrand uses it, so there's no need to make it optional. This commit removes the CSS styles based on it, so that errors and notes always display; removes the addition of the class to admin pages, and removes the conditional javascript that enabled admin tooltips based on the class. Closes #1161
* Fix “All Reports” table headers on scroll.Zarino Zappia2015-07-28-0/+81
| | | | | This reuses some JavaScript I originally wrote for mySociety’s EveryPolitician project.
* If only one category, be sure to fetch extras for it.Matthew Somerville2015-07-28-2/+8
|
* Default the Google map view to Satellite.Matthew Somerville2015-07-10-4/+4
| | | | | Using Map by default doesn't work for an unknown reason, but is okay if you switch to it. Fixes #1133.
* Rename map filtering GET param, remove unnecessary querySteven Day2015-06-29-14/+7
|
* Refresh map as soon as filters are changed on /my and /reportsDave Arter2015-06-29-0/+6
|
* Refresh map pins when status dropdown changes, if presentSteven Day2015-06-29-4/+7
|
* Pre-fill category on report form if map pins were filteredDave Arter2015-06-29-0/+14
|
* Change map pins with category fieldSteven Day2015-06-29-2/+17
| | | | | When the category dropdown is changed the map pins are re-requested from the server with the correct category in the URL.
* Add category filtering support to /ajax via 'category' GET paramDave Arter2015-06-29-1/+25
|
* Resize map pins based on zoom levelDave Arter2015-06-29-3/+46
| | | | When zoomed out, a smaller icon is used to stop the map getting too overcrowded.
* Update Bing Maps parameter ID.Matthew Somerville2015-05-05-9/+11
|
* Support Stamen toner-lite and Bing Maps tiles.Matthew Somerville2015-02-23-59/+121
|