web/data/cubicweb.ajax.js
changeset 8412 09432a572a44
parent 8349 fdb796435d7b
child 8569 40b3634eebe8
child 8590 c9e04bf7690a
equal deleted inserted replaced
8411:9ac2400cdf82 8412:09432a572a44
   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     },