]> source.dussan.org Git - nextcloud-server.git/commitdiff
IE8 does not support window.onclick
authorJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 21 Feb 2013 16:38:25 +0000 (17:38 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 21 Feb 2013 16:38:25 +0000 (17:38 +0100)
apps/files/js/files.js
core/js/js.js
search/js/result.js

index 8327460cca66e425f27e61d15c0ffb36791a599e..aeb7aedfaee4034dc1930abe3bb777ef34a2deea 100644 (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){
index 6d5d65403fb104103c882a4ee11d081bfb34e2ec..e373fca88658a72947007bf8960591af01000548 100644 (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);
        });
 
index cadb0d0aabec4b6b7f6076d4a5c457dbe2442e17..78fa8efc8e9d04d3a5648eb03ddf721ebad3a67a 100644 (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;