summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2012-10-08 22:37:11 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2012-10-08 22:38:14 +0300
commit71ff6382b57a51f2428b5205907248a9fbdea8ec (patch)
tree069a52842c4c37a6dbc899b710031853856a3445 /core
parenta657bfa369c6cf110f0258e085ec201d9a671210 (diff)
downloadnextcloud-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.js4
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();
}