mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Datepicker: Updated to check for new or old style effects (see #7103).
This commit is contained in:
parent
d64c9efda5
commit
ac0cc2fac5
8
ui/jquery.ui.datepicker.js
vendored
8
ui/jquery.ui.datepicker.js
vendored
@ -656,7 +656,9 @@ $.extend(Datepicker.prototype, {
|
||||
}
|
||||
};
|
||||
inst.dpDiv.zIndex($(input).zIndex()+1);
|
||||
if ($.effects && $.effects[showAnim])
|
||||
|
||||
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
|
||||
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) )
|
||||
inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
||||
else
|
||||
inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess);
|
||||
@ -781,7 +783,9 @@ $.extend(Datepicker.prototype, {
|
||||
$.datepicker._tidyDialog(inst);
|
||||
this._curInst = null;
|
||||
};
|
||||
if ($.effects && $.effects[showAnim])
|
||||
|
||||
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
|
||||
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) )
|
||||
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
||||
else
|
||||
inst.dpDiv[(showAnim == 'slideDown' ? 'slideUp' :
|
||||
|
Loading…
Reference in New Issue
Block a user