Skip to content
Permalink
Browse files

Datepicker: Fixed #4917 Enter key press on popup fails if _dayOverCla…

…ss td is after _currentClass td
  • Loading branch information
Keith Wood
Keith Wood committed Dec 15, 2009
1 parent 6230804 commit 0a8392186bd9425dc77f817558547ddffb92f97d
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 0a83921

Please sign in to comment.
You can’t perform that action at this time.