diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-10-08 22:37:11 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-10-08 22:38:14 +0300 |
commit | 71ff6382b57a51f2428b5205907248a9fbdea8ec (patch) | |
tree | 069a52842c4c37a6dbc899b710031853856a3445 /core | |
parent | a657bfa369c6cf110f0258e085ec201d9a671210 (diff) | |
download | nextcloud-server-71ff6382b57a51f2428b5205907248a9fbdea8ec.tar.gz nextcloud-server-71ff6382b57a51f2428b5205907248a9fbdea8ec.zip |
Prevent closing sharing dialog on picking the date
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js index ab6708c7c12..7968edebb7a 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -371,8 +371,8 @@ $(document).ready(function() { $(this).click(function(event) { var target = $(event.target); - var isMatched = !target.hasClass('drop') && !target.hasClass('ui-datepicker-next') - && !target.hasClass('ui-datepicker-prev') && !target.hasClass('ui-icon'); + var isMatched = !target.is('.drop, .ui-datepicker-next, .ui-datepicker-prev, .ui-icon') + && !target.closest('#ui-datepicker-div').length; if (OC.Share.droppedDown && isMatched && $('#dropdown').has(event.target).length === 0) { OC.Share.hideDropDown(); } |