aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.cgi
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-22 11:29:17 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-22 11:29:17 +0000
commitaa0611663f2852f48b8a77481bc9d6da406b2cc1 (patch)
tree6fd2604b8fc1e9e6aed3d883d5f2475e8d5a6664 /web/index.cgi
parentdfe4984c0ea5d9e1793f75aa7cb2574a877e9aa8 (diff)
Map JS only when map is being shown.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-xweb/index.cgi7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi
index 79a867f78..2eabf703e 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -787,7 +787,10 @@ EOF
url_home => Cobrand::url($cobrand, '/', $q),
submit_button => _('Submit')
);
- return (Page::template_include('report-form', $q, Page::template_root($q), %vars), robots => 'noindex,nofollow');
+ return (Page::template_include('report-form', $q, Page::template_root($q), %vars),
+ robots => 'noindex,nofollow',
+ js => FixMyStreet::Map::header_js(),
+ );
}
# redirect from osgb
@@ -982,6 +985,7 @@ sub display_location {
my %params = (
rss => [ _('Recent local problems, FixMyStreet'), $rss_url ],
+ js => FixMyStreet::Map::header_js(),
robots => 'noindex,nofollow',
);
@@ -1114,6 +1118,7 @@ EOF
my %params = (
rss => [ _('Updates to this problem, FixMyStreet'), "/rss/$input_h{id}" ],
robots => 'index, nofollow',
+ js => FixMyStreet::Map::header_js(),
title => $problem->{title}
);