Skip to content

Commit

Permalink
Datepicker: Fixed #4917 Enter key press on popup fails if _dayOverCla…
Browse files Browse the repository at this point in the history
…ss td is after _currentClass td
  • Loading branch information
Keith Wood committed Dec 15, 2009
1 parent 6230804 commit 0a83921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.datepicker.js
Expand Up @@ -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
Expand Down

0 comments on commit 0a83921

Please sign in to comment.