diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | templates/web/base/alert/index.html | 2 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 4 | ||||
-rw-r--r-- | web/js/map-OpenLayers.js | 4 |
4 files changed, 10 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 97b7386d1..1a9232adc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ - Hide password help field along with other similar. #2185 - Allow questionnaire link to be revisited in quick succession. #2123 - Update Google Maps directions link. + - Fix inspector pin dragging. #2073. - Open311 improvements: - CLOSED status maps to 'closed' state if extended statuses are enabled. - Don't generate template comment text on move between fixed states. diff --git a/templates/web/base/alert/index.html b/templates/web/base/alert/index.html index ca1b26e60..fa6e01fad 100644 --- a/templates/web/base/alert/index.html +++ b/templates/web/base/alert/index.html @@ -33,7 +33,7 @@ within a certain distance of a particular location.', "%s is the site name"), si <label for="pc">[% loc('Postcode or street name and area') %]</label> <p class="form-hint" id="pc-hint">[% tprintf(loc('e.g. ā%sā or ā%sā'), c.cobrand.example_places) %]</p> <div class="form-txt-submit-box"> - <input class="form-control" type="text" name="pc" value="[% pc | html %]" aria-describedby="pc-hint"> + <input class="form-control" type="text" id="pc" name="pc" value="[% pc | html %]" aria-describedby="pc-hint"> <input class="green-btn" type="submit" value="[% loc('Go') %]"> </div> </fieldset> diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 1b863625f..7d7a51d4a 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -1168,6 +1168,10 @@ fixmystreet.display = { fixmystreet.maps.click_control.activate(); } + if (fixmystreet.maps.setup_inspector) { + fixmystreet.maps.setup_inspector(); + } + if (typeof callback === 'function') { callback(); } diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index b2b74648c..d95103f82 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -178,6 +178,10 @@ $.extend(fixmystreet.utils, { return lonlat; }, + setup_inspector: function() { + setup_inspector_marker_drag(); + }, + markers_list: function(pins, transform) { var markers = []; var size = fixmystreet.maps.marker_size(); |