aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-07-03 09:55:55 +0100
committerStruan Donald <struan@exo.org.uk>2019-09-27 17:35:15 +0100
commitc036fabb7ef4a215d4de2cc6f5de0132793a06da (patch)
tree08145b0fd2b34aeeba67651349475b75589df3aa
parentde11fb610206c9bac5074a13521148f5192f1b76 (diff)
[IsleOfWight] only include javascript on relevant pages
-rw-r--r--templates/web/isleofwight/footer_extra_js.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/web/isleofwight/footer_extra_js.html b/templates/web/isleofwight/footer_extra_js.html
index 957259890..c43c49aef 100644
--- a/templates/web/isleofwight/footer_extra_js.html
+++ b/templates/web/isleofwight/footer_extra_js.html
@@ -1,8 +1,10 @@
-[% scripts.push(
- version('/vendor/OpenLayers.Projection.OrdnanceSurvey.js'),
- version('/cobrands/fixmystreet-uk-councils/roadworks.js'),
- version('/cobrands/fixmystreet-uk-councils/js.js'),
- version('/cobrands/fixmystreet/assets.js'),
- version('/cobrands/highways/assets.js'),
- version('/cobrands/isleofwight/js.js'),
-) %]
+[% IF bodyclass.match('mappage');
+ scripts.push(
+ version('/vendor/OpenLayers.Projection.OrdnanceSurvey.js'),
+ version('/cobrands/fixmystreet-uk-councils/roadworks.js'),
+ version('/cobrands/fixmystreet-uk-councils/js.js'),
+ version('/cobrands/fixmystreet/assets.js'),
+ version('/cobrands/highways/assets.js'),
+ version('/cobrands/isleofwight/js.js'),
+ );
+END %]