mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Prevent closing sharing dialog on picking the date
This commit is contained in:
parent
a657bfa369
commit
71ff6382b5
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue