From 339ed277ad480116c0a64300b2a55b28bc326310 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 24 Apr 2012 10:04:05 +0100 Subject: Text changes from Bromley, fix bug where multiple Title fields would appear if pin moved. --- web/js/map-OpenLayers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/js/map-OpenLayers.js') diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index a92d02c84..ac8a7819e 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -23,7 +23,7 @@ function fixmystreet_update_pin(lonlat) { $('#side-form, #site-logo').show(); $('#councils_text').html(data.councils_text); $('#form_category_row').html(data.category); - if ( data.extra_name_info ) { + 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() || $('#form_name').prev(); lb.before(data.extra_name_info); -- cgit v1.2.3