Edgewall Software

Ticket #7083: trac-load-stylesheet.diff

File trac-load-stylesheet.diff, 1.1 KB (added by Dave Gynn <dgynn@…>, 8 months ago)
  • trac/trac/htdocs/js/trac.js

     
    4141      if (document.createStyleSheet) { // MSIE 
    4242        document.createStyleSheet(href); 
    4343      } else { 
    44         $("<link rel='stylesheet type='" + type + "' href='" + href + "' />") 
     44        $("<link rel='stylesheet' type='" + type + "' href='" + href + "' />") 
    4545          .appendTo("head"); 
    4646      } 
    4747    }); 
  • trac/trac/templates/layout.html

     
    3333 
    3434    <script type="text/javascript" py:if="chrome.late_links"> 
    3535      <py:for each="link in chrome.late_links.get('stylesheet')"> 
    36         jQuery.loadStyleSheet("${link.href}", "${link.title}"); 
     36        jQuery.loadStyleSheet("${link.href}", "${link.type}"); 
    3737      </py:for> 
    3838    </script> 
    3939    <script py:for="script in chrome.late_scripts"