aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-10 07:58:17 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-10 07:58:17 -0400
commit7c15d3c19f9cdde9cc82ac0486a93b01ec03eb6b (patch)
treea9380e711b1bda1cdef71d5241a4231ea66b809d
parent1d266c18743c778b34287a40622c813126657c69 (diff)
downloadjquery-ui-7c15d3c19f9cdde9cc82ac0486a93b01ec03eb6b.tar.gz
jquery-ui-7c15d3c19f9cdde9cc82ac0486a93b01ec03eb6b.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 86a09aeb332851971bc2b2ce6bbf4d4292b12020.
-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 417758756..a0b81e86a 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -930,7 +930,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;
}
},