diff options
author | Struan Donald <struan@exo.org.uk> | 2011-10-20 22:17:16 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-10-20 22:17:16 +0100 |
commit | ba84d377dc19fe2b2c90e01ce6782d2ef6d79d14 (patch) | |
tree | 433b2e5a99666fc6bdad31e3851fc3f982a06e97 /web | |
parent | 6923018a0bdf4a996b2cf15a56ba887009e66aab (diff) |
only add on change handler if there are open311 extra params
Diffstat (limited to 'web')
-rw-r--r-- | web/js/map-OpenLayers.js | 4 |
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(); |