aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/map-OpenLayers.js')
-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 dda50b1b9..e0b5a4436 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -317,7 +317,9 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
$('#form_category_row').html(data.category);
/* Need to reset this here as it gets removed when we replace
the HTML for the dropdown */
- $('#form_category').change( form_category_onchange );
+ if ( data.has_open311 > 0 ) {
+ $('#form_category').change( form_category_onchange );
+ }
});
$('#side-form').show();
$('#side').hide();