From e0e2cb884766580359a046db8dd7fe7572158c9d Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 30 Jan 2019 12:25:52 +0000 Subject: Map JS only on map pages. --- templates/web/northamptonshire/footer_extra_js.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/web/northamptonshire/footer_extra_js.html b/templates/web/northamptonshire/footer_extra_js.html index 8ea4eb06b..c17d2777e 100644 --- a/templates/web/northamptonshire/footer_extra_js.html +++ b/templates/web/northamptonshire/footer_extra_js.html @@ -1,8 +1,11 @@ -[% scripts.push( +[% +IF bodyclass.match('mappage'); + scripts.push( version('/cobrands/fixmystreet/assets.js'), version('/cobrands/fixmystreet-uk-councils/alloy.js'), version('/vendor/OpenLayers.Projection.OrdnanceSurvey.js'), version('/cobrands/northamptonshire/assets.js'), version('/cobrands/highways/assets.js'), version('/cobrands/fixmystreet-uk-councils/council_validation_rules.js'), -) %] + ); +END %] -- cgit v1.2.3