aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-07-09 05:29:18 -0700
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-07-09 05:29:18 -0700
commit5513e30752896ce7a96188b244d9960bc3867bde (patch)
tree13f2c9526befe14609b43dd2b080a1931ac3fbc5 /core
parent439cad07b5d15f67d30b7686330ddf5091c61927 (diff)
parent41d37446bb993dbdac7b7cace3809b139ff62687 (diff)
downloadnextcloud-server-5513e30752896ce7a96188b244d9960bc3867bde.tar.gz
nextcloud-server-5513e30752896ce7a96188b244d9960bc3867bde.zip
Merge pull request #3920 from owncloud/Fixing_search_ie8
[ie8] Fix lazy CSS loading and missing borders in search dropdown
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 3904787c4e5..5158b66d73a 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -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) {