Merge pull request #3920 from owncloud/Fixing_search_ie8

[ie8] Fix lazy CSS loading and missing borders in search dropdown
This commit is contained in:
Jörn Friedrich Dreyer 2013-07-09 05:29:18 -07:00
commit 5513e30752
2 changed files with 10 additions and 2 deletions

View File

@ -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) {

View File

@ -17,6 +17,10 @@
width:26.5em;
z-index:75;
}
.ie8 #searchresults {
border: 1px solid #666 !important;
}
#searchresults li.resultHeader {
background-color:#eee;