diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-30 17:55:41 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-30 17:55:41 +0100 |
commit | 19eeb618ff5332c7b6b1efad7350c1a8c2851bd4 (patch) | |
tree | 9d55d1d6577bd8a912da6d5b30a6079180c0a22f /apps/files | |
parent | d21a5b45f3f47d27a72d9acee4189eefc8104092 (diff) | |
download | nextcloud-server-19eeb618ff5332c7b6b1efad7350c1a8c2851bd4.tar.gz nextcloud-server-19eeb618ff5332c7b6b1efad7350c1a8c2851bd4.zip |
Prevent closing the create dropdown when right clicking in Firefox
Firefox sends a click event on the document when right clicking which
makes pasting with right click into the field impossible.
Fixes #5498
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/file-upload.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 95c0723f254..8c56f1cb364 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -465,7 +465,11 @@ $(document).ready(function() { crumb.text(text); } - $(document).click(function() { + $(document).click(function(ev) { + // do not close when clicking in the dropdown + if ($(ev.target).closest('#new').length){ + return; + } $('#new>ul').hide(); $('#new').removeClass('active'); if ($('#new .error').length > 0) { |