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
41 41 if (document.createStyleSheet) { // MSIE 42 42 document.createStyleSheet(href); 43 43 } else { 44 $("<link rel='stylesheet type='" + type + "' href='" + href + "' />")44 $("<link rel='stylesheet' type='" + type + "' href='" + href + "' />") 45 45 .appendTo("head"); 46 46 } 47 47 }); -
trac/trac/templates/layout.html
33 33 34 34 <script type="text/javascript" py:if="chrome.late_links"> 35 35 <py:for each="link in chrome.late_links.get('stylesheet')"> 36 jQuery.loadStyleSheet("${link.href}", "${link.t itle}");36 jQuery.loadStyleSheet("${link.href}", "${link.type}"); 37 37 </py:for> 38 38 </script> 39 39 <script py:for="script in chrome.late_scripts"
