mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Fix lazy styles loading in IE8
This commit is contained in:
parent
4c1820a2a1
commit
16e5a1b100
1 changed files with 6 additions and 2 deletions
|
|
@ -226,8 +226,12 @@ var OC={
|
|||
var path=OC.filePath(app,'css',style+'.css');
|
||||
if(OC.addStyle.loaded.indexOf(path)===-1){
|
||||
OC.addStyle.loaded.push(path);
|
||||
style=$('<link rel="stylesheet" type="text/css" href="'+path+'"/>');
|
||||
$('head').append(style);
|
||||
if (document.createStyleSheet) {
|
||||
document.createStyleSheet(path);
|
||||
} else {
|
||||
style=$('<link rel="stylesheet" type="text/css" href="'+path+'"/>');
|
||||
$('head').append(style);
|
||||
}
|
||||
}
|
||||
},
|
||||
basename: function(path) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue