mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Use null instead of empty string when showing/hiding without a duration.
Fixes #5086 - no animation still animates.
This commit is contained in:
parent
1e95c7ff06
commit
ee87defcca
4
ui/jquery.ui.datepicker.js
vendored
4
ui/jquery.ui.datepicker.js
vendored
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user