equal
deleted
inserted
replaced
179 if (url) { |
179 if (url) { |
180 var missingStylesheetsUrl = cw.ajax._buildMissingResourcesUrl(url, cw.loaded_links); |
180 var missingStylesheetsUrl = cw.ajax._buildMissingResourcesUrl(url, cw.loaded_links); |
181 // compute concat-like url for missing resources and append <link> |
181 // compute concat-like url for missing resources and append <link> |
182 // element to $head |
182 // element to $head |
183 if (missingStylesheetsUrl) { |
183 if (missingStylesheetsUrl) { |
184 $srcnode.attr('href', missingStylesheetsUrl); |
184 // IE has problems with dynamic CSS insertions. One symptom (among others) |
185 $srcnode.appendTo($head); |
185 // is a "1 item remaining" message in the status bar. (cf. #2356261) |
|
186 // document.createStyleSheet needs to be used for this, although it seems |
|
187 // that IE can't create more than 31 additional stylesheets with |
|
188 // document.createStyleSheet. |
|
189 if ($.browser.msie) { |
|
190 document.createStyleSheet(missingStylesheetsUrl); |
|
191 } else { |
|
192 $srcnode.attr('href', missingStylesheetsUrl); |
|
193 $srcnode.appendTo($head); |
|
194 } |
186 } |
195 } |
187 } |
196 } |
188 }); |
197 }); |
189 $responseHead.find('link[href]').remove(); |
198 $responseHead.find('link[href]').remove(); |
190 }, |
199 }, |