| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
|
|
| |
The JavaScript assumes it is, but due to a string comparison in
DBIx::Class [1] when a has_many prefetch is in use (as it is on
a /reports page when a shortlist-using staff user is logged in)
all IDs bar the first were being given an internal string value
and JSON encoding was outputting them as a string.
[1] https://github.com/dbsrgits/dbix-class/blob/v0.08209/lib/DBIx/Class/ResultSet.pm#L1331
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Alert options on the /alert/list page are now in an order that is easier
to parse, with a slightly clearer message for users in two-tier
locations, and a more prominent email subscription CTA.
|
|/ |
|
|
|
|
|
| |
Dropzone version 5 changed how createThumbnailFromUrl was called,
so the upgrade in 30dd9d8 broke this.
|
| |
|
|
|
|
|
| |
The change in 17e38922 would not deal with the URL construted by the
map permalink code, or the redirect after inspection.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
The page currently fetches the pins again client-side (as we don't know
the extent of the map at the server point). I realise this isn't ideal,
but should speed up the normal case quite a bit.
|
| |
| |
| |
| |
| | |
If the list was replaced by JavaScript, the event handlers were being
dropped. Switch the handlers to the parent that remains present.
|
| |
| |
| |
| |
| | |
Both /reports and /my share an ID and a /reports/ajax function, use
these also on /around (and share ajax/non-ajax code).
|
|/
|
|
| |
Part of #1384.
|
|
|
|
|
|
|
| |
- Also provides an editor for the extra Open311 fields on contacts.
- Adds .btn--small class for small buttons
Fixes #1743.
|
|
|
|
|
|
| |
uses the body user but flags the report as anonymous
Fixes #fixmystreetforcouncils/207
|
| |
|
|
|
|
| |
Fixes mysociety/fixmystreetforcouncils#211.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A seemingly unrelated change in ef6ffbdb was causing JS errors
on the /reports page which meant the map loading spinner
was permanently present. This commit fixes that, and also fixes
another bug which was uncovered where the ?ajax=1 param was
being ignored by the Zürich /reports page, leading to HTML
being returned and another JS error.
The call to `new OpenLayers.Bounds` in
OpenLayers.Strategy.FixMyStreet.getMapBounds was causing
three of the 4 bounds params to be lost when run on OpenLayers
2.11, as this version doesn’t accept an array to the Bounds
constructor. This in turn was using an invalid `bbox` parameter
(only the west value was present) in the AJAX call to /reports
which returned a 500 error. This then crashed the JS and caused
the loading spinner to get stuck.
|
|
|
|
| |
Fixes #1792.
|
|
|
|
|
| |
The front page redirects to report area, ignoring whatever is entered,
and the sign in page includes details of the demo accounts.
|
|
|
|
|
|
| |
Pulling in a report via JavaScript that has two columns (e.g. the
inspect form) changes the size of the map, so updateSize needs to
be called.
|
|
|
|
|
|
| |
If the report is loaded with JavaScript, the outer form (for a new
report) is present and would otherwise take this click and start a
broken new report submission.
|
|
|
|
|
| |
This meant if a report was loaded via JavaScript, the action scheduled
buttons were not being shown at the appropriate point.
|
|
|
|
|
|
|
|
|
|
| |
The black and yellow background image tiles now look more like asphalt
and less like leather.
Also, high-dpi screens now get a double resolution tile, which avoids
noticeable jpeg artifacting on the yellow #front-main in particular.
Fixes #1715.
|
| |
|
| |
|
|
|
|
| |
Fixes #1776.
|
| |
|
|\ |
|
| |
| |
| |
| | |
This fixes an issue with the footer navigation display.
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
| |
This is a much broader summary page, plus a body name autocomplete.
This was originally implemented for fixmystreet.com in 8a6a4ccb7.
It also adds '(no longer exists)' in the autocomplete next to
bodies not covering any areas.
You can supply the `--table` argument to `update-all-reports` to
generate the old-style data.
|
|
|
|
|
| |
Add hook for post-title field content in report form.
Update translations.
|
|
|
|
| |
Give it the same sort of look as currently on the front page.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Revert the behaviour from 36baff2d, so that everyone can use the 'action
scheduled' state, and instead if someone with report_instruct permission
has the state set to 'action scheduled', add an extra mandatory question
asking whether they want to raise a defect or not.
|
| |
| |
| |
| |
| | |
The input is used by e.g. Chrome/Safari to position the "required" error
message, so needs to be on screen.
|
|\ \ |
|
| | | |
|
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is a much broader summary page, plus a body name autocomplete.
This uses a cut down version of chart.js. [1]
[1] The full version was 149Kb (41Kb gzipped) plus you needed moment
(50Kb/17Kb), for a total of 199Kb/58Kb. By stripping out unused graphs
and code and config options, and switching to category axis rather than
time, it is now a total of 39Kb/13Kb.
|
| |
| |
| |
| | |
Puts it back on alert page, lost in July 2016.
|
|/ |
|
| |
|
|
|
|
|
| |
Make the relevant labels inline-block so that their click area is not
wider than their content; move the body name outside of the heading.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
When the category or state changes, the list of available templates
updates (previously it was frozen at what the category was on page
load, and didn't care about the state).
|
| |
| |
| |
| |
| | |
It would match the wrong submit button (because switching to duplicate
introduced new submit buttons).
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The newest version of Dropzone has added support for client-side resizing of
images, so this commit upgrades to version 5.1.1 and takes advantage of that in
order to reduce the disc space consumed by uploaded images.
The target size & JPEG quality is quite aggressive, resulting in files in the
region of 200-300KB instead of several MB. I've tried to pick a value which
doesn't impact the usefulness of the photos in identifying problems.
Handily the new version also correctly rotates images according to the EXIF tag
so our patch has be reduced dramatically to deal with the sync nature of the
mini EXIF library in use.
Related to the disc space part of #1411, though EXIF metadata isn't stripped.
|
| |
|