From: Victor Dubiniuk Date: Mon, 8 Oct 2012 19:37:11 +0000 (+0300) Subject: Prevent closing sharing dialog on picking the date X-Git-Tag: v4.5.0RC3~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=71ff6382b57a51f2428b5205907248a9fbdea8ec;p=nextcloud-server.git Prevent closing sharing dialog on picking the date --- 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(); }