Prevent closing sharing dialog on picking the date

This commit is contained in:
Victor Dubiniuk 2012-10-08 22:37:11 +03:00
parent a657bfa369
commit 71ff6382b5
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}