]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 289889: Add javascript_urls to header template - Patch by Teemu Mannermaa <wicked...
authorlpsolit%gmail.com <>
Sat, 16 Apr 2005 23:41:21 +0000 (23:41 +0000)
committerlpsolit%gmail.com <>
Sat, 16 Apr 2005 23:41:21 +0000 (23:41 +0000)
template/en/default/global/header.html.tmpl

index ff283396fa27e19e4f9a5f4e4492b8c59f50924e..a4314fdfa6d81553dade7a7a03d0cfa9da07fa7e 100644 (file)
@@ -31,6 +31,7 @@
   # bodyclasses: array of extra CSS classes for the <body>
   # 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 FILTER html %]" type="text/javascript" language="JavaScript"></script>
+      [% END %]
+    [% END %]
 
     [%+ INCLUDE "global/help-header.html.tmpl" %]