aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
...
* 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
| |
* | Prevent text overflow in homepage stats sectionZarino Zappia2017-11-07-9/+15
|/ | | | | | | | | | | When there are lots of reports on a site, the big numbers on the homepage would overflow the grid and look messy. This was particularly noticeable on the fixmystreet.com homepage on 768–1024px screens. We now scale up the font size more gradually, as the container widens, and the maximum font size (3em) is slightly lower than before. Fixes #1722.
* Merge branch '1887-uk-svg-logo'Matthew Somerville2017-11-06-125/+93
|\
| * [UK] Inline SVG logo with PNG fallback.Zarino Zappia2017-11-06-4/+57
| | | | | | | | | | | | | | | | | | | | Rather than include the mobile logo as a base64-encoded data URI, we include it as an SVG, inlined on the homepage or in the CSS. The SVG should gzip better, and will work better with the critical CSS work, allowing the site logo to appear immediately on page load for mobile visitors, rather than waiting for the full stylesheet to download. Fixes #1887.
| * Remove 2x image fallbacks for SVGs.Matthew Somerville2017-11-06-121/+36
| | | | | | | | | | If the browser doesn't support SVG, they're not going to care about high-dpi images.
* | cobrand option to control prefilling of report fields for inspectorsStruan Donald2017-11-06-8/+11
|/ | | | | | | | | | Add a `prefill_report_fields_for_inspectors` config to cobrands, defaulted to 0, to control the automatic pre-population of report fields. Also add default of 1 for UKCouncil cobrand. Fixed #1854
* Fix pin size when JavaScript unavailable.Matthew Somerville2017-11-06-8/+6
| | | | 1b15964a doubled the pin icon images.
* Merge branch 'around-and-about-pagination'Matthew Somerville2017-11-06-99/+98
|\
| * Add pagination to around page.Matthew Somerville2017-11-06-17/+92
| |
| * Remove Show all pins link and on_map_list_limit.Matthew Somerville2017-11-06-78/+1
| | | | | | | | | | /around will now show all reports all the time, but we are about to introduce pagination to stop that.
| * Have /around ajax use same format as others.Matthew Somerville2017-11-02-5/+6
| | | | | | | | | | Both /reports and /my work by using the same URL with ajax=1. We should use the same on /around for consistency.
* | Update Bing Maps parameter ID.Matthew Somerville2017-11-06-8/+8
|/
* Merge branch 'reports-dashboard-councils'Matthew Somerville2017-10-20-1/+1
|\