diff options
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/header.html.tmpl | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index a25cf70dc..82a75e6a3 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -188,12 +188,23 @@ type="text/css"> <![endif]--> - - [% IF javascript %] - <script type="text/javascript"> - [% javascript %] - </script> - [% END %] + <script type="text/javascript"> + <!-- + [%# Make some Bugzilla information available to all scripts. + # We don't import every parameter and constant because we + # don't want to add a lot of uncached JS to every page. + #%] + var BUGZILLA = { + param: { + cookiepath: '[% Param('cookiepath') FILTER js %]' + } + }; + + [% IF javascript %] + [% javascript %] + [% END %] + // --> + </script> [% IF javascript_urls %] [% FOREACH javascript_url = javascript_urls %] |