aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorJedidiah Broadbent <hello@jedidiah.eu>2013-06-03 16:13:13 +0100
committerJedidiah Broadbent <hello@jedidiah.eu>2013-06-03 16:13:13 +0100
commit00935ce1da08124918becbe6b2d97d3b6703dc5c (patch)
tree2c65240af80a0233c8f2b2a141a0926497ad8986 /www/js/map-OpenLayers.js
parent60b3caaece752d9915a208f7f94b23d7cfbd8ddb (diff)
parentdbc9edbfb12768d6c368e99f4580022b4a5ce2ee (diff)
Merge branch 'phonegap-jquery-mobile-new' of ssh://git.mysociety.org/data/git/public/fixmystreet into phonegap-jquery-mobile-new
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r--www/js/map-OpenLayers.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js
index e8defdf..9a0bf67 100644
--- a/www/js/map-OpenLayers.js
+++ b/www/js/map-OpenLayers.js
@@ -127,6 +127,9 @@ function fixmystreet_onload() {
fixmystreet.map.removePopup(popup);
popup.destroy();
feature.popup = null;
+ $('#view-my-reports').show();
+ $('#login-options').show();
+ $('#OpenLayers_Control_Crosshairs_crosshairs').show();
});
fixmystreet.markers.events.register( 'featureselected', fixmystreet.markers, function(evt) {
var feature = evt.feature;
@@ -134,11 +137,14 @@ function fixmystreet_onload() {
var popup = new OpenLayers.Popup.FramedCloud("popup",
feature.geometry.getBounds().getCenterLonLat(),
null,
- feature.attributes.title + "<br><a href=" + CONFIG.FMS_URL + "/report/" + feature.attributes.id + ">More details</a>",
+ feature.attributes.title + "<br><a onclick=\"FMS.openExternal(event); return false;\" href=\"" + CONFIG.FMS_URL + "/report/" + feature.attributes.id + "\">More details</a>",
{ size: new OpenLayers.Size(0,0), offset: new OpenLayers.Pixel(0,-40) },
true, onPopupClose);
feature.popup = popup;
fixmystreet.map.addPopup(popup);
+ $('#view-my-reports').hide();
+ $('#login-options').hide();
+ $('#OpenLayers_Control_Crosshairs_crosshairs').hide();
});
fixmystreet.map.addControl( fixmystreet.select_feature );
fixmystreet.select_feature.activate();