diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-10-08 22:03:16 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-10-08 22:03:16 +0300 |
commit | 06d00af9f89d9c858b6f7a3fb11de85d4da8d6fc (patch) | |
tree | 59b5dea6e87ddac9a34895d8a9e34d920bbe8c96 /core/js | |
parent | 32e2d7ef8f53d4ff80fc31c977464e9c9b960f06 (diff) | |
download | nextcloud-server-06d00af9f89d9c858b6f7a3fb11de85d4da8d6fc.tar.gz nextcloud-server-06d00af9f89d9c858b6f7a3fb11de85d4da8d6fc.zip |
Prevent closing sharing dialog on month adjustment. Fixes oc-1884
Diffstat (limited to 'core/js')
-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(); } }); |