diff options
author | Dave Arter <davea@mysociety.org> | 2016-03-29 17:56:37 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-03-29 17:56:37 +0100 |
commit | e994554ec343239c4c5235338f5fd04046f247b8 (patch) | |
tree | 0cbd6c67fa1eef9b888604fd06e664cc650d8967 /web/js/map-OpenLayers.js | |
parent | 742d7dcc95a131c6ccbd195491a826aafe9ea575 (diff) | |
parent | 822fe33f679d4c84cb7bece3a5243fb91d45e857 (diff) |
Merge branch 'issues/commercial/754-angus-cobrand'
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 4 |
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(); |