]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Handle empty string for animation duration.
authorScott González <scott.gonzalez@gmail.com>
Wed, 3 Mar 2010 01:31:04 +0000 (01:31 +0000)
committerScott González <scott.gonzalez@gmail.com>
Wed, 3 Mar 2010 01:31:04 +0000 (01:31 +0000)
Fixes #5259 - DatePicker will not ever close.

ui/jquery.ui.datepicker.js

index 03d58681a6e4c4fc5a206dda8d3e28055c69912d..e41ae62a34d8a9e04546e94fb286806e1ea1ecc6 100644 (file)
@@ -646,7 +646,7 @@ $.extend(Datepicker.prototype, {
                                inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
                        else
                                inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess);
-                       if (!showAnim)
+                       if (!showAnim || !duration)
                                postProcess();
                        if (inst.input.is(':visible') && !inst.input.is(':disabled'))
                                inst.input.focus();