Merge pull request #5633 from owncloud/files-createdropdownstayswithrightclick

Prevent closing the create dropdown when right clicking in Firefox
This commit is contained in:
Vincent Petry 2013-10-30 10:38:03 -07:00
commit cdb3c74632
1 changed files with 5 additions and 1 deletions

View File

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