summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkiko%async.com.br <>2004-07-16 08:59:41 +0200
committerkiko%async.com.br <>2004-07-16 08:59:41 +0200
commitfe27d05648e12a122ece65163d6d79153ef9bfb8 (patch)
tree8dcea6ec9c8bede35859834a16646b560a9acb38
parentfa6809697052fa46d1585839a1858279293fbb57 (diff)
downloadbugzilla-fe27d05648e12a122ece65163d6d79153ef9bfb8.tar.gz
bugzilla-fe27d05648e12a122ece65163d6d79153ef9bfb8.tar.xz
Fix for bug 251469: Add an interface argument in header template to
import <script src files. Patch by Tiago R. Mello <tiago@async.com.br>. r=timeless, a=justdave.
-rw-r--r--template/en/default/global/header.html.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index d33be2efb..b67fdfafa 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -30,6 +30,7 @@
# bodyattrs: any extra attributes for the <body> tag
# onload: string. JavaScript code to run when the page finishes loading.
# javascript: string. Javascript to go in the header.
+ # javascript_urls: list. List of URLs to Javascript.
# style: string. CSS style.
# style_urls: list. List of URLs to CSS style sheets.
# message: string. A message to display to the user. May contain HTML.
@@ -70,6 +71,12 @@
[% javascript %]
</script>
[% END %]
+
+ [% IF javascript_urls %]
+ [% FOREACH javascript_url = javascript_urls %]
+ <script src="[% javascript_url %]" type="text/javascript" language="JavaScript"></script>
+ [% END %]
+ [% END %]
[%+ INCLUDE "global/help-header.html.tmpl" %]