aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-03-03 01:31:04 +0000
committerScott González <scott.gonzalez@gmail.com>2010-03-03 01:31:04 +0000
commitc91e1cc86a2b13bdc6e97a669829b582676154c1 (patch)
tree4ad349edea9b5464762793767e5f970bdfb122ee /ui/jquery.ui.datepicker.js
parentb2ef0fcc9ea01e874ee54fa2191227fd7fc1095e (diff)
downloadjquery-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.js2
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();