Changeset 343


Ignore:
Timestamp:
10/06/10 01:11:39 (14 years ago)
Author:
misc
Message:
  • refactoring, and fix html 4.1 compliance for script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/templates/includes/header.tt

    r321 r343  
    77<link rel="stylesheet" href="[% c.uri_for('/static', 'vote.css') %]" type="text/css"> 
    88<link rel="icon" href="[%- c.uri_for('/static', 'images', 'favicon.ico') -%]" type="image/x-icon"> 
    9  
    10 <script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype', 
    11     'controls.js') %]"></SCRIPT> 
    12 <script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype', 
    13     'dragdrop.js') %]"></SCRIPT> 
    14 <script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype', 
    15     'effects.js') %]"></SCRIPT> 
    16 <script language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype', 
    17     'prototype.js') %]"></SCRIPT> 
     9[% FOREACH file = [ 'controls.js', 'dragdrop.js', 'effects.js', 'prototype.js' ] %] 
     10<script type="text/javascript" language="JavaScript" src="[% c.uri_for('/static', 'js', 'prototype', 
     11    file) %]"></script> 
     12[% END %] 
    1813 
    1914<link rel="stylesheet" href="[% c.uri_for('/static', 'dhtmlxCalendar', 'dhtmlxcalendar.css') %]" type="text/css"> 
    20 <script language="JavaScript" src="[% c.uri_for('/static', 'dhtmlxCalendar', 
    21     'dhtmlxcommon.js') %]"></SCRIPT> 
    22 <script language="JavaScript" src="[% c.uri_for('/static', 'dhtmlxCalendar', 
    23     'dhtmlxcalendar.js') %]"></SCRIPT> 
     15[% FOREACH file = [ 'dhtmlxcommon.js', 'dhtmlxcalendar.js' ] %] 
     16<script type="text/javascript" language="JavaScript" src="[% c.uri_for('/static', 'dhtmlxCalendar', 
     17    'dhtmlxcommon.js') %]"></script> 
     18[% END %] 
    2419 
    2520</head> 
Note: See TracChangeset for help on using the changeset viewer.