diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-03-03 01:31:04 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-03-03 01:31:04 +0000 |
commit | c91e1cc86a2b13bdc6e97a669829b582676154c1 (patch) | |
tree | 4ad349edea9b5464762793767e5f970bdfb122ee /ui/jquery.ui.datepicker.js | |
parent | b2ef0fcc9ea01e874ee54fa2191227fd7fc1095e (diff) | |
download | jquery-ui-c91e1cc86a2b13bdc6e97a669829b582676154c1.tar.gz jquery-ui-c91e1cc86a2b13bdc6e97a669829b582676154c1.zip |
Datepicker: Handle empty string for animation duration.
Fixes #5259 - DatePicker will not ever close.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 03d58681a..e41ae62a3 100644 --- a/ui/jquery.ui.datepicker.js +++ b/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(); |