aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
Commit message (Collapse)AuthorAgeLines
* 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
* | Make external links HTTPS where possible.Matthew Somerville2014-07-03-2/+2
|/ | | | And fix a couple that have redirected.
* FMS map tile changes for HTTPS.Matthew Somerville2014-05-30-1/+1
| | | | | Make the FMS map tile URLs be scheme independent, and only use one level of subdomain.
* Add a searchable dropdown of clinic names to postcode formStruan Donald2014-04-08-0/+4983
| | | | | | | | | | | | uses select2 for the dropdown and a cobrand call to fetch the list of report titles as the clinic names. Relies on a redirect in httpd.conf to make the non JS version work. Still leaves the postcode search in place as select2 won't accept custom terms if you base it on a select box, which we want to do so it works if JavaScript is disabled Fixes #723
* send a virtual page view when we click on the mapStruan Donald2014-04-04-0/+4
| | | | Only if universal analytics turned on and on the fixmystreet cobrand
* Allow cobrands to set their own path to pin filesHakim Cassimally2014-03-25-5/+9
| | | | | | | | | New cobrand function of pin_path that sets the path to where the image files for pins are located. Defaults to /i This still means they need to use the same file names but they can at least put those in a cobrand directory rather than having to overwrite the files in /i or fudge it with pin_colour
* use local jquery ui, not CDN, for admin datepickerDave Whiteland2013-11-07-0/+14
|
* Add Jquery-ui files, and fixmystreet-admin.jsAndrew Black2013-11-07-0/+18
|
* Tidy up panzoom bar placement.Matthew Somerville2013-10-25-2/+7
|
* Add Google OpenLayers-based map layer.Matthew Somerville2013-10-11-0/+586
|
* Upgrade main OpenLayers to 2.13.1.Matthew Somerville2013-10-11-1393/+1212
|
* add show-admin-notes class to bodyDave Whiteland2013-09-06-22/+24
| | | | | making the admin-notes functionality easier to suppress on installations that don't want it; it's in the default header, i.e., on for new installations