| Commit message (Collapse) | Author | Age | Lines |
... | |
|
|
|
| |
An experiment towards fixing #525.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
When viewing /around without the `js=1` parameter in a Spanish locale
the incorrect decimal separator was being passed to the DB query,
causing a crash.
Fixes mysociety/fixmystreet-commercial#942
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This can optionally disable appcache for superusers which can be handy
in development.
|
|
|
|
|
|
|
| |
This adds a new send_moderation_notifications method which can be overridden
by cobrands to prevent “your report has been moderated” emails from being sent.
Fixes mysociety/fixmystreet-commercial#936
|
|
|
|
| |
And fix reference to it in the front page prefetch list.
|
|
|
|
|
| |
Only works on bodies with an associated area, and requires the
object to be passed in, not just its ID.
|
|
|
|
|
| |
The multi-select plugin is a separate project, and should be treated as
a vendor file.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
| |
If someone selects 15-16th November, they want reports
from both those dates, not just the 15th.
|
|
|
|
|
| |
This prevents the form scroll going to the wrong place when the
form was being hidden later on.
|
|\
| |
| |
| | |
Updated geolocation.js with concurrent changes.
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Ran it through convert -sampling-factor 4:2:0 -quality 85 -strip.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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 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.
|
| | |
|
| |
| |
| |
| |
| | |
The changes in 6c6ae623 meant that the link was now being caught
by the `js=1` filter and the redirect failed with two `?`.
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
It turns out that HTTP::Message (as used by LWP::Simple::get) only
decodes text/* and 'XML', not application/json, as used by all the
geocoders. Work around this, hopefully in a future-proof way.
|
| |/
| |
| |
| | |
This means there should only be one cache entry per request.
|
|\ \ |
|
| | | |
|
| |/ |
|
|/
|
|
| |
Fixes mysociety/fixmystreet-commercial#927.
|
|
|
|
|
|
| |
If it is before, then it is loaded, the onload event doesn't fire, and
the base styling is lost if the browser is resized from large to small
width.
|