aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-10-20 18:03:34 +0100
committerStruan Donald <struan@exo.org.uk>2011-10-20 18:03:34 +0100
commit284b74472e30db0f1b1e82a4538f4bebfc0b67a5 (patch)
tree285df4f19696c0a798c87246350cbb594a2d5425 /web/js/map-OpenLayers.js
parentc81eae7c7a4b7421333bc9031be024b7a973f942 (diff)
make the additional information fields work with js update of category dropdown
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 0f9974222..d754248f4 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -315,6 +315,10 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
}, function(data) {
$('#councils_text').html(data.councils_text);
$('#form_category_row').html(data.category);
+ eval( 'category_extras = ' + data.category_extras + ';');
+ /* Need to reset this here as it gets removed when we replace
+ the HTML for the dropdown */
+ $('#form_category').change( form_category_onchange );
});
$('#side-form').show();
$('#side').hide();