diff options
author | Dave Whiteland <dave@mysociety.org> | 2012-02-17 17:02:47 +0000 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2012-02-17 17:02:47 +0000 |
commit | d86885f9ea99566c87bac226eddeb875ba40bba5 (patch) | |
tree | 48e678445f1bd78ca369d9fe4100785a9d3b9288 /web/js/map-OpenLayers.js | |
parent | 2ea254bd33a38d1c93da1fb8c5e730119b21eade (diff) |
use delegation to attach change event to form_category so it survives being repopulated
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index fa93c2f4c..7cf253bc7 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -355,11 +355,6 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { }, function(data) { $('#councils_text').html(data.councils_text); $('#form_category_row').html(data.category); - /* Need to reset this here as it gets removed when we replace - the HTML for the dropdown */ - if ( data.has_open311 > 0 ) { - $('#form_category').change( form_category_onchange ); - } }); $('#side-form').show(); /* For some reason on IOS5 if you use the jQuery show method it |