]> source.dussan.org Git - nextcloud-server.git/commitdiff
Prevent closing sharing dialog on month adjustment. Fixes oc-1884
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 8 Oct 2012 19:03:16 +0000 (22:03 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 8 Oct 2012 19:03:16 +0000 (22:03 +0300)
core/js/share.js

index 75448bfe20831efe9bd75b413f83e4e4d5e7c345..ab6708c7c127d7e72be3ad33021147e1a98be546 100644 (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();
                }
        });