summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-02-11 20:41:14 +0100
committermkanat%bugzilla.org <>2009-02-11 20:41:14 +0100
commit0b4ee129cc3a16943a39f01494f8167791a8d38a (patch)
tree49f07949c5bcb3a67c7fa5df4a17c23cd274c826 /template/en/default/global
parent9598c5404c3d47c69d7d83545eb447bb39dff078 (diff)
downloadbugzilla-0b4ee129cc3a16943a39f01494f8167791a8d38a.tar.gz
bugzilla-0b4ee129cc3a16943a39f01494f8167791a8d38a.tar.xz
Bug 376673: Add a simple version of the bug entry form (enter_bug.cgi)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/header.html.tmpl23
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 %]