diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-13 00:46:06 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-13 00:46:06 +0000 |
commit | e969202aee6953ab5d8fcf6d075249109352d97e (patch) | |
tree | 0de3b06c6c25cde7c0b9227f91b16413db7c05e1 /web/js/map-OpenLayers.js | |
parent | 500d5f63a85b81db8efe9fbfae3c093c2f0356a8 (diff) |
.data() doesn't appear to work here in Firefox 3.6 (though does in the other place it's used, sigh), so set our own variable instead. Set gallery of all images, typo.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 2978bf7fe..6ffcb5c1d 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -227,7 +227,7 @@ $(function(){ fixmystreet.map.setCenter(centre, fixmystreet.zoom || 3); } - if ($('#map_box').data('size')=='full') { + if (fixmystreet.state_map && fixmystreet.state_map == 'full') { // TODO Work better with window resizing, this is pretty 'set up' only at present var q = $(window).width() / 4; // Need to try and fake the 'centre' being 75% from the left @@ -445,7 +445,7 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { document.getElementById('side-form').style.display = 'block'; } $('#side').hide(); - if (typeof heightFix !== undefined) { + if (typeof heightFix !== 'undefined') { heightFix('#report-a-problem-sidebar', '.content', 26); } |