Skip to content
Permalink
Browse files

Datepicker: Handle empty string for animation duration.

Fixes #5259 - DatePicker will not ever close.
  • Loading branch information
scottgonzalez committed Mar 3, 2010
1 parent b2ef0fc commit c91e1cc86a2b13bdc6e97a669829b582676154c1
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.datepicker.js
@@ -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();

0 comments on commit c91e1cc

Please sign in to comment.
You can’t perform that action at this time.