| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
| |
If the list of reports was scrolled and then the map was clicked, the
form would be pre-scrolled down. It now makes sure to scroll the form
to the top. Fixes #787.
|
|
|
|
|
| |
This was added along with pin/sidebar highlighting in b71d042e,
but has proved distracting/confusing.
|
|
|
|
|
|
|
| |
It turns out the strategy was still firing even with correctly rounded
co-ordinates from getMapBounds, as there were still rounding errors
introduced by the two differing ways of calculating the map bounds. We
override one function to always equal the results of the other method.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hovering over map pins highlights the relevant item from the
sidebar beside the map. And hovering a sidebar item highlights
the relevant map pin.
Clicking a map pin takes you directly to the relevant report
page, just like clicking an item in the sidebar.
This means the OpenLayers popup "balloon" no longer appears on
clicking a pin, and has been removed entirely.
To make customisation of the list item hover colour easier,
it has been abstracted out into a SCSS variable that cobrand
authors should override (as the fixmystreet.com cobrand does)
or leave at its default light grey colour.
Fixes #1094.
|
|
|
|
|
|
|
|
|
|
|
| |
We had a report that our file uploader (dropzone) wasn't working in
Opera on a Lumia Windows phone. It looks like this version of Opera is
saying it has capability but doesn't. The file uploader already
blacklists Opera 12 on a Macintosh, so do the same on Windows Phone
(Opera Mini 9 has a version 12 identifier in its user agent string).
The full User Agent string was Opera/9.80 (Windows Phone; Opera
Mini/9.0.0/37.7751; U; en) Presto/2.12.423 Version/12.16
|
| |
|
|
|
|
| |
Makes the flow more like new reporting.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Three file inputs, progressively enhanced with dropzone.
This moves the photo input higher up, so that photos can upload while
you're filling out the form. It standardises and improves photo error
handling.
[fixmystreet.com] Guidance for what photos should and shouldn’t include.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A repeat of cc6a278; Google have now dropped version 3.20 of their Maps
API, which we were using. Version 3.21 is the oldest available version,
and only appears to work if you start off in hybrid view.
According to https://developers.google.com/maps/documentation/javascript/versions,
in three months 3.21 will be dropped; 3.22 does not currently work with
our OpenLayers code at all. Looking at
http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/google-v3.html
the maps do still appear if you first switch to the Satellite layer. So
investigation will be needed to find out why that happens and if it can
be worked around.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
- Refactor map tile size into a constant
- Update map tiles to use new Zurich WMTS server directly instead of Apache proxy
|
|
|
|
|
| |
The GoogleOL layer will default to map, unless the
fixmystreet_google_default variable is set to 'satellite'.
|
|
|
|
| |
Fixes #1104.
|
| |
|
|
|
|
| |
Fixes #1192.
|
|
|
|
|
| |
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.
|
|\ |
|
| |
| |
| |
| |
| | |
Also move some UK-specific code in the same function.
The specific code is still tested in report_new.t.
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
.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
|
|
|
|
|
| |
This reuses some JavaScript I originally wrote for mySociety’s
EveryPolitician project.
|
| |
|
|
|
|
|
| |
Using Map by default doesn't work for an unknown reason, but is okay if
you switch to it. Fixes #1133.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
When the category dropdown is changed the map pins are re-requested
from the server with the correct category in the URL.
|
| |
|
|
|
|
| |
When zoomed out, a smaller icon is used to stop the map getting too overcrowded.
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
|/
|
|
|
|
| |
This reverts most of commit 71b400a1f5991b9a693095c417aa61e274a5215d,
leaving the skip-this-step CSS changes and the tweaks to the /ajax JSON
output.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
| |
This gave no conclusive results, which was interesting.
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
Conflicts:
web/cobrands/fixmystreet/base.scss
|
| |
| |
| |
| |
| |
| | |
only on FMS and only if from outside the uk
Fixes #571
|