| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
| |
This hides the report form entirely if the user has not selected a road
maintained by Buckinghamshire. Also extends the roads layer to apply to
all categories.
|
| |
|
| |
|
|
|
|
| |
outside of Bucks roads
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Requires the OpenLayers build to include Strategy.Filter.
|
|
|
|
|
| |
The handler function may want to perform differing actions based
on the selected feature’s attributes.
|
|
|
|
|
| |
set a last_road value so we can run code to do things like remove ui
elements if the layer is no longer active
|
|
|
|
|
| |
Default to setting or unsetting single_body_only but if there is an
action defined in the layer then call that instead
|
|
|
|
|
| |
Allow clicking on a road asset to set the only body to send the report
to.
|
| |
|
|
|
|
| |
currently just displays a hard coded message in the map sidepanel
|
| |
|
| |
|
|
|
|
|
| |
Rather than associating an asset layer with a single category use an
array so we can use a layer with multiple sub-categories
|
|
|
|
| |
Fixes mysociety/fixmystreet-commercial#943.
|
|
|
|
|
|
|
|
|
|
| |
The "coerce pin ID to integer" behaviour to fix a previous issue was
coercing undefined to NaN, which then caused other problems with the
new report pin, such as fading out when hovered, and being the wrong
size.
Also improve the cursor handling, showing the grab/ grabbing cursors
where available.
|
|
|
|
|
|
| |
If you started a new report by clicking the map before the
server had responded with the map list pins, when they did
arrive they would replace the new report pin.
|
| |
|
|\ \
| | |
| | |
| | | |
'2016-uk-green-banner-position-test' and '2021-uk-homepage-intent-experiment'
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Present "report" vs "browse" choice at time of postcode entry, so we
can track intent, as part of a temporary experiment into what people
expect to see on the fixmystreet.com/around page.
Google Analytics will be able detect which button was pressed by
looking for the `intent=report` or `intent=report` query string param
in the resulting pageview location.
We supply a *third* submit button, immediately before the other two,
and hidden from visual users and assistive devices, to prevent either
of the "intent" submit values being sent when the user submits the
form via the Return/Enter key.
Part of #2021.
|
| | | |
|
| | |
| | |
| | |
| | | |
Part of #2016.
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Data collected by #2001 has shown that some people are clicking the big
green "Click map to report a problem" banner on fixmystreet.com/around.
We assume the same is true for other cobrands.
As suggested in #2016, this commit adds a click handler to that banner
element, which will begin a new report at the centre of the screen. It
might not be the exact right location, but the pin can be repositioned
from the /report/new form, and beginning a report is better than just
soaking up the click and doing nothing.
|
| |
| |
| |
| |
| |
| |
| |
| | |
I don't think this check could ever have worked, because items are invisible
if their parent is set to `display: none`, so it would hide the links bar if
it was already hidden, and show it if it was already shown.
Use a js- class for the movement of the feed item into the sub map links.
|
|/
|
|
| |
The change to base in fc172603 affected the layout display.
|
|
|
|
|
| |
Web and email template changes, CSS plus cobrand file with open311
config
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The event handlers for category changing were being added too early,
before fixmystreet.map had been created. For cobrands with category
grouping enabled this was causing a crash in the JS because the grouping
code emits a category change event during its setup (which runs between
fixmystreet.assets.add and .assets.init).
This commit adds the event handlers for each layer during
fixmystreet.assets.init - at point at which fixmystreet.map has been set
up. Also extracts the code for initing each layer into its own function
for clarity.
|
|
|
|
|
| |
This commit re-sets the values of any form inputs when the
category extra elements are reloaded, e.g. when the category is changed.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
The Zurich code was written a long time ago, and used overriding so that
e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now
that states are stored in the database, we can create ones specially for
Zurich and use them instead. Hooray!
|
| | |
|
| |
| |
| |
| | |
Adapt look of default dashboard filtering.
|
| |
| |
| |
| | |
Remove 'hooks' functions, and Split out USRN handling to its own object.
|
|/ |
|
|
|
|
| |
Plus remove some now-unneeded CSS.
|
| |
|