aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
Commit message (Collapse)AuthorAgeLines
* 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
|
* Tidy up front page and map copyright templates.Matthew Somerville2015-02-23-5/+1
|
* Add Hybrid map toggle option to Google Maps view.Matthew Somerville2015-01-19-0/+14
|
* Merge remote-tracking branch 'mhalden/fiksgatami-js-fiks'Matthew Somerville2015-01-13-3/+3
|\
| * Fixed show/hide pins and show/hide old for norwegian cobrand.fiksgatami-js-fiksMarius Halden2014-12-30-3/+3
| |
* | Use HTTPS OpenStreetMap tiles.Matthew Somerville2015-01-09-4/+4
| |
* | Revert most of "Experiment, no pins by default."Matthew Somerville2015-01-09-4/+0
|/ | | | | | This reverts most of commit 71b400a1f5991b9a693095c417aa61e274a5215d, leaving the skip-this-step CSS changes and the tweaks to the /ajax JSON output.
* Fix JS-disabled submission in Chrome/Firefox.Hakim Cassimally2014-11-14-0/+4
| | | | | | | | | | | Fixes #932, which is caused by HTML5 validation firing for hidden elements, by setting #mapForm to novalidate by default, and reverting this in fixmystreet.js. Note that the 'novalidate' attribute, which is honoured by the browsers' HTML5 validation, isn't to be confused with the class (class="validate") which is picked up by fixmystreet.js, and therefore not problematic for the no-js case.
* [fixmystreet.com] Experiment, no pins by default.Matthew Somerville2014-10-17-0/+4
| | | | | | | | This changes the default flow to show no pins and a message about reporting, with the second tab displaying existing problems (and showing map pins). Those existing problems are the ones that would currently be on "problems on the map" followed by those currently on "problems nearby".
* [fixmystreet.com] Remove login content experiment.Matthew Somerville2014-10-17-4/+0
| | | | This gave no conclusive results, which was interesting.
* Report moderationHakim Cassimally2014-08-13-0/+42
| | | | | | | | | | | - redaction marked with [...] - of report and comments - stores original data - uses a single form, on the report/_main view - requires additional permissions (user_body_permissions) - Hide report functionality - Moderation notification/contact form - Moderation writes to admin_log
* Removal old Southampton/Reading/Lichfield cobrands.Matthew Somerville2014-07-29-135/+0
|
* Add fixmystreet.com reporting form A/B tests.Matthew Somerville2014-07-10-0/+4
| | | | | | Testing two things: * Putting the email box above the Yes/No, or repeating it inside. * Showing the contents of the Yes/No sections at first, or not.
* Merge branch '571-show-local-deploys-banner'Matthew Somerville2014-07-04-0/+13
|\ | | | | | | | | Conflicts: web/cobrands/fixmystreet/base.scss
| * Display a banner to non UK FixMyStreet visitorsStruan Donald2014-07-03-0/+13
| | | | | | | | | | | | only on FMS and only if from outside the uk Fixes #571