From d86885f9ea99566c87bac226eddeb875ba40bba5 Mon Sep 17 00:00:00 2001 From: Dave Whiteland Date: Fri, 17 Feb 2012 17:02:47 +0000 Subject: use delegation to attach change event to form_category so it survives being repopulated --- web/js/map-OpenLayers.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'web/js/map-OpenLayers.js') 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 -- cgit v1.2.3