aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-12 23:16:49 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-12 23:16:49 +0000
commit2d303093aa9ddb482aa4cfcf1bffab06e1e574f4 (patch)
tree9fc5e7477602d30a8e3c3cadaeb970d0fc36e745 /web
parentd2c70168d1aa1090314be160b9650f1a501e14e5 (diff)
Shared JS file, this function might not be defined.
Diffstat (limited to 'web')
-rw-r--r--web/js/map-OpenLayers.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 58d1e21ec..2978bf7fe 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -445,7 +445,9 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
document.getElementById('side-form').style.display = 'block';
}
$('#side').hide();
- heightFix('#report-a-problem-sidebar', '.content', 26);
+ if (typeof heightFix !== undefined) {
+ heightFix('#report-a-problem-sidebar', '.content', 26);
+ }
// If we clicked the map somewhere inconvenient
var sidebar = $('#report-a-problem-sidebar');