]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 251469: Add an interface argument in header template to
authorkiko%async.com.br <>
Fri, 16 Jul 2004 06:59:41 +0000 (06:59 +0000)
committerkiko%async.com.br <>
Fri, 16 Jul 2004 06:59:41 +0000 (06:59 +0000)
import <script src files. Patch by Tiago R. Mello <tiago@async.com.br>.
r=timeless, a=justdave.

template/en/default/global/header.html.tmpl

index d33be2efb88d76488dcecf9ea83bcd0bc7e34a3e..b67fdfafaa7f5cc0cc53badc3e2fd2d7014c99e6 100644 (file)
@@ -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.
         [% 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" %]