aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-10 07:55:19 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-10 07:55:19 -0400
commitbb79b418717bbd4b2ae800fc8c6bbe39682a2283 (patch)
tree7b7d3f3293c2470e2078b9ab81acab7fee546a9f /ui
parent7c7d3df8e7b90785a6725cb74863e793d21fea1a (diff)
downloadjquery-ui-bb79b418717bbd4b2ae800fc8c6bbe39682a2283.tar.gz
jquery-ui-bb79b418717bbd4b2ae800fc8c6bbe39682a2283.zip
Datepicker: Revert "Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object" Fixes #7623 - DatePicker reappears after selection in ie8.
This reverts commit 5f0a2f01c4609315ab66158191d3f9bd420f827f.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.datepicker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index 3b8caa59b..0b6fb2218 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -934,7 +934,8 @@ $.extend(Datepicker.prototype, {
else {
this._hideDatepicker();
this._lastInput = inst.input[0];
- inst.input.focus(); // restore focus
+ if (typeof(inst.input[0]) != 'object')
+ inst.input.focus(); // restore focus
this._lastInput = null;
}
},