diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-01-30 12:25:52 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2019-03-25 14:41:12 +0000 |
commit | e0e2cb884766580359a046db8dd7fe7572158c9d (patch) | |
tree | ae23075ceb72ab8ac56b3b51b438e83b12c86a37 /templates | |
parent | df452727860a9597d83e615b10dfb00e0f9ad8e4 (diff) |
Map JS only on map pages.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/northamptonshire/footer_extra_js.html | 7 |
1 files 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 %] |