aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Day <steve@mysociety.org>2012-11-19 16:39:24 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-10 11:47:24 +0000
commit7d4be1ba8ea70bf7abcf253692526381b74112f5 (patch)
treea17199fac57495f36ebb657193060a5471e47a8c
parent90ad2b9c5550941d59a0a1a0673f700d35027cef (diff)
Make javascript not clobber the translated problem reporting header
-rw-r--r--templates/web/default/js/validation_strings.html3
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/templates/web/default/js/validation_strings.html b/templates/web/default/js/validation_strings.html
index 3b3a958fe..c33bd2b81 100644
--- a/templates/web/default/js/validation_strings.html
+++ b/templates/web/default/js/validation_strings.html
@@ -18,5 +18,6 @@
fms_extra_title: '[% loc('Please enter your title') | replace("'", "\\'") %]',
first_name: '[% loc('Please enter your first name') | replace("'", "\\'") %]',
last_name: '[% loc('Please enter your second name') | replace("'", "\\'") %]',
- geolocate: '[% loc('or locate me automatically') | replace("'", "\\'") %]'
+ geolocate: '[% loc('or locate me automatically') | replace("'", "\\'") %]',
+ report_problem_heading: '[% loc('Click map to report a problem') | replace("'", "\\'") %]'
};
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 2da3dc44b..be5de57cd 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -117,7 +117,7 @@ $(function(){
banner_text = 'Click map to report a problem<span>Yellow pins show existing reports</span>';
} else {
$('#site-header').show();
- banner_text = 'Click map to report a problem';
+ banner_text = validation_strings.report_problem_heading;
}
$('#fms_pan_zoom').css({ top: '4.75em !important' });
$('.big-green-banner')