aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-11-29 10:35:06 +0000
committerMatthew Somerville <matthew@mysociety.org>2011-11-29 10:35:06 +0000
commit8dd76782e6594ef3f6e6ccb19bdf5b67e4665649 (patch)
tree9b68b5acd9e1333a57343513105fea9799aff50e
parent73f306faf04ee097230bbb80250479f414009d9d (diff)
Make sure validation strings present in all headers to stop JS errors on non-default site. This JS should presumably only be included on pages that need it.
-rw-r--r--templates/web/default/common_header_tags.html2
-rw-r--r--templates/web/default/header.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/default/common_header_tags.html b/templates/web/default/common_header_tags.html
index 1a5e9f9f9..95b59d9dd 100644
--- a/templates/web/default/common_header_tags.html
+++ b/templates/web/default/common_header_tags.html
@@ -1,3 +1,5 @@
+[% INCLUDE 'js_validation_msgs.html' %]
+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="/jslib/jquery-1.7.0.min.js"></script>
diff --git a/templates/web/default/header.html b/templates/web/default/header.html
index 1a3324952..e3c364363 100644
--- a/templates/web/default/header.html
+++ b/templates/web/default/header.html
@@ -15,8 +15,6 @@
<link rel="stylesheet" type="text/css" href="[% version('/css/core.css') %]">
<link rel="stylesheet" type="text/css" href="[% version('/css/main.css') %]">
- [% INCLUDE 'js_validation_msgs.html' %]
-
[% INCLUDE 'common_header_tags.html' %]
[% IF c.req.uri.host == 'osm.fixmystreet.com' %]