diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-10-08 23:03:16 +0400 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-10-08 23:03:16 +0400 |
commit | 06d00af9f89d9c858b6f7a3fb11de85d4da8d6fc (patch) | |
tree | 59b5dea6e87ddac9a34895d8a9e34d920bbe8c96 /core | |
parent | 32e2d7ef8f53d4ff80fc31c977464e9c9b960f06 (diff) |
Prevent closing sharing dialog on month adjustment. Fixes oc-1884
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js index 75448bfe208..ab6708c7c12 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -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(); } }); |