diff options
author | Keith Wood <kbwood.au@gmail.com> | 2009-12-15 03:42:40 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2009-12-15 03:42:40 +0000 |
commit | 0a8392186bd9425dc77f817558547ddffb92f97d (patch) | |
tree | 6f1f52e7505780c40a0219302661b2792ea15f56 | |
parent | 62308045149d16132c34e9cdc501c3edb332e429 (diff) | |
download | jquery-ui-0a8392186bd9425dc77f817558547ddffb92f97d.tar.gz jquery-ui-0a8392186bd9425dc77f817558547ddffb92f97d.zip |
Datepicker: Fixed #4917 Enter key press on popup fails if _dayOverClass td is after _currentClass td
-rw-r--r-- | ui/jquery.ui.datepicker.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 9b1025fe7..f1c05a02a 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -480,8 +480,8 @@ $.extend(Datepicker.prototype, { case 9: $.datepicker._hideDatepicker(); handled = false; break; // hide on tab out - case 13: var sel = $('td.' + $.datepicker._dayOverClass + - ', td.' + $.datepicker._currentClass, inst.dpDiv); + case 13: var sel = $('td.' + $.datepicker._dayOverClass, inst.dpDiv). + add($('td.' + $.datepicker._currentClass, inst.dpDiv)); if (sel[0]) $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]); else |