From: Jörn Friedrich Dreyer Date: Thu, 21 Feb 2013 16:38:25 +0000 (+0100) Subject: IE8 does not support window.onclick X-Git-Tag: v5.0.0beta2~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0dd7fd0599e0757abc81677ccbb8d4a6839a5f79;p=nextcloud-server.git IE8 does not support window.onclick --- diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 8327460cca6..aeb7aedfaee 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -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){ diff --git a/core/js/js.js b/core/js/js.js index 6d5d65403fb..e373fca8865 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -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); }); diff --git a/search/js/result.js b/search/js/result.js index cadb0d0aabe..78fa8efc8e9 100644 --- a/search/js/result.js +++ b/search/js/result.js @@ -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;