aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-23 17:44:20 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-23 17:44:20 +0100
commite2228cc41a0de205db7b2ea2bbc3a26658d858de (patch)
tree3ba789635301c77f5fbd3dd95a37217acb842c0e /www/js/map-OpenLayers.js
parent00b45e897166184fe8f6f6e9d09333f6ed3298bb (diff)
Add in a confirm location step as it provides a better workflow when
dealing with existing reports
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r--www/js/map-OpenLayers.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js
index c5ce747..cd01de1 100644
--- a/www/js/map-OpenLayers.js
+++ b/www/js/map-OpenLayers.js
@@ -297,7 +297,7 @@ function show_map(event) {
fixmystreet_onload();
fixContentHeight(fixmystreet.map);
- var crosshairsControls, i, markHere, newX, newY;
+ var crosshairsControls, i, markHere, confirm, newX, newY;
if (typeof fixmystreet !== 'undefined' && typeof fixmystreet.map !== "undefined") {
// Update the position of any crosshairs controls:
@@ -308,12 +308,17 @@ function show_map(event) {
}
// Also reposition the "Tap here to mark this point" button:
markHere = $('#mark-here');
+ confirm = $('#confirm');
newX = $(window).width() / 2 - markHere.width() / 2;
newY = $(window).height() * 4 / 5 - markHere.height() / 2;
markHere.css({
left: newX + "px",
top: newY + "px"
});
+ confirm.css({
+ left: newX + "px",
+ top: newY + "px"
+ });
}