diff options
author | gnarf <gnarf@gnarf.net> | 2011-03-11 09:26:08 -0600 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-03-15 09:02:21 -0400 |
commit | ac0cc2fac5c0be1be599e35524476718be1650e3 (patch) | |
tree | 17933992202a69f2c8cc44fd52bf0687cd2a2dee /ui/jquery.ui.datepicker.js | |
parent | d64c9efda53f6e56feacf5f39940cd7719a2cb61 (diff) | |
download | jquery-ui-ac0cc2fac5c0be1be599e35524476718be1650e3.tar.gz jquery-ui-ac0cc2fac5c0be1be599e35524476718be1650e3.zip |
Datepicker: Updated to check for new or old style effects (see #7103).
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 8dd9bf3dc..670955f64 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -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' : |