aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/datepicker.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets/datepicker.js')
-rw-r--r--ui/widgets/datepicker.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js
index a271351e0..605760572 100644
--- a/ui/widgets/datepicker.js
+++ b/ui/widgets/datepicker.js
@@ -910,11 +910,8 @@ $.extend( Datepicker.prototype, {
}
},
- // #6694 - don't focus the input if it's already focused
- // this breaks the change event in IE
- // Support: IE and jQuery <1.9
_shouldFocusInput: function( inst ) {
- return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
+ return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" );
},
/* Check positioning to remain on screen. */
@@ -971,8 +968,7 @@ $.extend( Datepicker.prototype, {
$.datepicker._tidyDialog( inst );
};
- // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
- if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
+ if ( $.effects && ( $.effects.effect[ showAnim ] ) ) {
inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess );
} else {
inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" :