aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/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 cc4959b7b..f6c446f7b 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -21,8 +21,12 @@ function fixmystreet_update_pin(lonlat) {
return;
}
$('#side-form, #site-logo').show();
+ var old_category = $("select#form_category").val();
$('#councils_text').html(data.councils_text);
$('#form_category_row').html(data.category);
+ if ($("select#form_category option[value=\""+old_category+"\"]").length) {
+ $("select#form_category").val(old_category);
+ }
if ( data.extra_name_info && !$('#form_fms_extra_title').length ) {
// there might be a first name field on some cobrands
var lb = $('#form_first_name').prev();