aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* Improve data filter/"Group by" UI on /dashboard.Zarino Zappia2017-12-14-32/+114
| | | | This will also be used by /reports/[body]/summary in a bit.
* Merge branch 'jquery-needed-some-places-it-is-not'Matthew Somerville2017-12-13-6/+8
|\
| * [UK] Make sure jQuery is loaded where it is neededMatthew Somerville2017-12-12-6/+8
| | | | | | | | | | | | | | Bromley uses jQuery for its A-Z on all pages; only load Bristol map JavaScript on map pages (same as Angus); drop Oxfordshire JS use of jQuery; fix Zurich load order; and improve jQuery checking in other JavaScript.
* | [Borsetshire] Add Pro box to bottom of homepage.Matthew Somerville2017-12-07-0/+43
| |
* | [Borsetshire] Amend sign in instruction text.Matthew Somerville2017-12-07-2/+59
|/
* Use JS to split category UI into category/subcategoryDave Arter2017-12-05-0/+70
| | | | | | | | | This commit splits the category dropdown into two fields: a top-level "category" field populated with the category groups, and a "subcategory" field for the options in each <optgroup> in the original HTML. It does some short-circuiting, e.g. for optgroups that only have a single option the subcategory field won't be shown.
* Consolidate summary statistics pages.Matthew Somerville2017-11-29-4/+1
|
* Nicer multi-select elements in Admin pagesZarino Zappia2017-11-29-33/+49
| | | | Fixes #1589.
* Merge remote-tracking branch ↵Matthew Somerville2017-11-28-2/+7
|\ | | | | | | 'origin/1920-back-once-again-for-the-renegade-master'
| * Fix back bug, from report after using list filtersMatthew Somerville2017-11-28-2/+7
| | | | | | | | | | | | | | | | | | The popstate event for a filter change assumed that the list was already being displayed, but it was not if you were going back from a report. The reports_list function to display the list page is idempotent (though this commit makes it more so), so can happily be called whether the list page is currently displayed or not.
* | display council contacts on council dashboardStruan Donald2017-11-28-5/+17
|/ | | | | | | | Display a list of the email addresses used to contact the council on the council dashboard. Does not display emails if the council has an integration, rejects FMS reports or is currently turned off. Fixes mysociety/fixmystreetforcouncils#941
* Second, more prominent Hide Pins linkZarino Zappia2017-11-27-7/+61
| | | | An experiment towards fixing #525.
* Add js=1 to links to /around from the front pageDave Arter2017-11-24-0/+5
| | | | | | The location disambiguation page uses the frontpage JavaScript and has lots of links pointing to /around, so the code should make sure those links include the `js` parameter.
* Hide geolocation link if not on HTTPSDave Arter2017-11-24-1/+2
| | | | | | | Modern browsers disable geolocation on non-HTTPS pages, but sadly still report it as available with the `navigator.geolocation` object. This commit adds a check for HTTPS and hides the link if it won’t work.
* Fix UI bug stopping superusers making reportsDave Arter2017-11-24-0/+1
| | | | | | | | | | The `fixmystreet.update_pin` function removes the 'body' option from the 'report as' dropdown, which was leaving the UI in an inconsistent state if the 'body' option had previously been selected. This commit ensures the change handler is called when the content of the dropdown is modified. Fixes #1913.
* Switch to minified jQuery multi-select library.Matthew Somerville2017-11-22-337/+9
| | | | And fix reference to it in the front page prefetch list.
* Move jquery.multi-select.js into vendor directoryZarino Zappia2017-11-20-0/+0
| | | | | The multi-select plugin is a separate project, and should be treated as a vendor file.
* Upgrade to latest version of jquery.multi-select.jsDave Arter2017-11-20-35/+38
| | | | | | | In particular, this lets us ensure only one multiselect can be open at a time – for example in the "Show [X] reports about [Y]" list filters. Fixes mysociety/fixmystreetforcouncils#247.
* Prevent multiple 'Expand map' links appearing.Matthew Somerville2017-11-16-2/+2
| | | | | | | On mobile, if you e.g. selected one report and then another, you'd get another "Expand map" appearing. Check that one is needed before adding it, and also make sure the handler is only attached once to prevent it conflicting with itself (and so cancelling itself out).
* Hide update form for inspectors in HTML.Matthew Somerville2017-11-16-8/+3
| | | | | This prevents the form scroll going to the wrong place when the form was being hidden later on.
* Merge branch '1901-js-deferring'Matthew Somerville2017-11-15-886/+150
|\ | | | | | | Updated geolocation.js with concurrent changes.
| * Have front page load minimal JS necessary.Matthew Somerville2017-11-15-0/+13
| | | | | | | | | | | | By creating a small file with only what is needed (focus, js flagging), we can drop loading jQuery and all the application JavaScript on the front page, prefetching them instead.
| * [fixmystreet.com] Factor out front-page-only JavaScript.Matthew Somerville2017-11-15-27/+38
| |
| * Factor out geolocation to pages that need it.Matthew Somerville2017-11-15-48/+59
| |
| * Use modern prefetch.Matthew Somerville2017-11-15-15/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | This removes the yepnope library, instead using <link rel="prefetch"> with a polyfill (the polyfill will work on Safari but reload cached script on the front page each time). We prefetch map-related JavaScript (and other libraries only used on map pages, such as Dropzone and Fancybox) on non-map pages, and don't bother loading the validate plugin on the front page. Now the map JavaScript list is available everywhere, we can use that in the prefetch rather a hardcoded list.
| * Factor all make_multi together.Matthew Somerville2017-11-14-4/+1
| |
| * [fixmystreet.com] Remove unused code.Matthew Somerville2017-11-14-779/+0
| |
| * [fixmystreet.com] Remove jQuery cookie plugin.Matthew Somerville2017-11-13-15/+3
| |
| * [fixmystreet.com] Reduce filesize of tile-y.jpg.Matthew Somerville2017-11-13-0/+0
| | | | | | | | Ran it through convert -sampling-factor 4:2:0 -quality 85 -strip.
* | Remove unused cross-white.* imagesZarino Zappia2017-11-15-1/+0
| |
* | Remove sprite.pngZarino Zappia2017-11-15-2/+0
| |
* | Problem status "banner" no longer uses sprite.pngZarino Zappia2017-11-15-22/+25
| |
* | Collect button icons into a single spriteZarino Zappia2017-11-15-69/+47
| | | | | | | | | | | | Replace `.button-fwd` and `.button-back` with `button--*` classes to match the existing button styles. And combine the various button icons into a single sprite file.
* | Use report-tools sprite for mobile "back to map" tabZarino Zappia2017-11-15-3/+12
| |
* | Pseudo-element icons for #key-toolsZarino Zappia2017-11-15-135/+135
| | | | | | | | | | | | | | | | Buttons in #key-tools now get their icons from a single sprite, and have less overpowered selectors. Moving to a pseudo-element approach meant we could cut out some complex padding/background stuff, but also meant we needed to switch to <button> elements rather than <input> elements for the "Remove from site" action.
* | Move sub_map_links icons out of sprite.pngZarino Zappia2017-11-15-86/+95
| |
* | Move fancybox magnify icon out of sprite.pngZarino Zappia2017-11-15-9/+15
| |
* | Move pan/zoom controls out of sprite.pngZarino Zappia2017-11-15-11/+15
| |
* | Move default site logo out of sprite.pngZarino Zappia2017-11-15-2/+5
| |
* | Remove IE6 sprite GIFsZarino Zappia2017-11-15-10/+0
| |
* | Remove sprite.png from FixaMinGata and FiksGataMiZarino Zappia2017-11-15-6/+6
| | | | | | | | | | | | | | Move the logos for FixaMinGata and FiksGataMi into their own files (like most cobrands do) so we can remove their forked copies of `sprite.png`. Part of #1888.
* | Round geolocated co-ordinates to 6 decimal places.Matthew Somerville2017-11-15-2/+2
| |
* | Fix front page geolocation function.Matthew Somerville2017-11-15-1/+2
| | | | | | | | | | The changes in 6c6ae623 meant that the link was now being caught by the `js=1` filter and the redirect failed with two `?`.
* | Merge branch 'issues/forcouncils/246-dashboard-date-range'Matthew Somerville2017-11-15-13/+13
|\ \
| * | Improve styling of filters on council dashboard pageZarino Zappia2017-11-14-13/+13
| |/
* / [Borsetshire] Homepage login hint bannerZarino Zappia2017-11-15-0/+49
|/ | | | Fixes mysociety/fixmystreet-commercial#927.
* Merge branch 'critical-css'Matthew Somerville2017-11-08-278/+8
|\
| * Show geolocate link more by default.Matthew Somerville2017-11-07-8/+6
| |
| * Remove unused nicetable/promo CSS/JS.Matthew Somerville2017-11-06-180/+0
| |
| * Remove ancient geolocation JS library.Matthew Somerville2017-11-06-91/+3
| |