aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-01-22 04:13:36 +0000
committerScott González <scott.gonzalez@gmail.com>2010-01-22 04:13:36 +0000
commitee87defcca81d7741758b620b85bd1e70d94cfae (patch)
treebd5a590db4ab09949f856cbf3db0bb45170babf0 /ui/jquery.ui.datepicker.js
parent1e95c7ff0660dacd40abf8d4263a114151a54b1d (diff)
downloadjquery-ui-ee87defcca81d7741758b620b85bd1e70d94cfae.tar.gz
jquery-ui-ee87defcca81d7741758b620b85bd1e70d94cfae.zip
Datepicker: Use null instead of empty string when showing/hiding without a duration.
Fixes #5086 - no animation still animates.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r--ui/jquery.ui.datepicker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index a80ffba0d..45d514a33 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -644,7 +644,7 @@ $.extend(Datepicker.prototype, {
if ($.effects && $.effects[showAnim])
inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
else
- inst.dpDiv[showAnim || 'show']((showAnim ? duration : ''), postProcess);
+ inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess);
if (!showAnim)
postProcess();
if (inst.input[0].type != 'hidden')
@@ -754,7 +754,7 @@ $.extend(Datepicker.prototype, {
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
else
inst.dpDiv[(showAnim == 'slideDown' ? 'slideUp' :
- (showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))]((showAnim ? duration : ''), postProcess);
+ (showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))]((showAnim ? duration : null), postProcess);
if (!showAnim)
postProcess();
var onClose = this._get(inst, 'onClose');