aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/fixmystreet/report/new/fill_in_details_form.html3
-rw-r--r--web/js/map-OpenLayers.js3
2 files changed, 5 insertions, 1 deletions
diff --git a/templates/web/fixmystreet/report/new/fill_in_details_form.html b/templates/web/fixmystreet/report/new/fill_in_details_form.html
index b8a813348..237533657 100644
--- a/templates/web/fixmystreet/report/new/fill_in_details_form.html
+++ b/templates/web/fixmystreet/report/new/fill_in_details_form.html
@@ -111,6 +111,9 @@
[% IF c.user_exists %]
<div class="form-box">
+
+ [% INCLUDE 'report/new/extra_name.html' %]
+
<label for="form_name">[% loc('Name') %]</label>
[% IF field_errors.name %]
<p class='form-error'>[% field_errors.name %]</p>
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index ac8a7819e..f11ae3ed9 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -25,7 +25,8 @@ function fixmystreet_update_pin(lonlat) {
$('#form_category_row').html(data.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() || $('#form_name').prev();
+ var lb = $('#form_first_name').prev();
+ if ( lb.length == 0 ) { lb = $('#form_name').prev(); }
lb.before(data.extra_name_info);
}
});