Prevent closing sharing dialog on month adjustment. Fixes oc-1884

This commit is contained in:
Victor Dubiniuk 2012-10-08 22:03:16 +03:00
parent 32e2d7ef8f
commit 06d00af9f8
1 changed files with 4 additions and 1 deletions

View File

@ -370,7 +370,10 @@ $(document).ready(function() {
});
$(this).click(function(event) {
if (OC.Share.droppedDown && !($(event.target).hasClass('drop')) && $('#dropdown').has(event.target).length === 0) {
var target = $(event.target);
var isMatched = !target.hasClass('drop') && !target.hasClass('ui-datepicker-next')
&& !target.hasClass('ui-datepicker-prev') && !target.hasClass('ui-icon');
if (OC.Share.droppedDown && isMatched && $('#dropdown').has(event.target).length === 0) {
OC.Share.hideDropDown();
}
});