IE8 does not support window.onclick

This commit is contained in:
Jörn Friedrich Dreyer 2013-02-21 17:38:25 +01:00
parent 0a6e9933fc
commit 0dd7fd0599
3 changed files with 3 additions and 3 deletions

View File

@ -524,7 +524,7 @@ $(document).ready(function() {
crumb.text(text);
}
$(window).click(function(){
$(document).click(function(){
$('#new>ul').hide();
$('#new').removeClass('active');
$('#new li').each(function(i,element){

View File

@ -669,7 +669,7 @@ $(document).ready(function(){
$('#settings #expanddiv').click(function(event){
event.stopPropagation();
});
$(window).click(function(){//hide the settings menu when clicking outside it
$(document).click(function(){//hide the settings menu when clicking outside it
$('#settings #expanddiv').slideUp(200);
});

View File

@ -28,7 +28,7 @@ OC.search.showResults=function(results){
OC.search.hide();
event.stopPropagation();
});
$(window).click(function(event){
$(document).click(function(event){
OC.search.hide();
});
OC.search.lastResults=results;