diff options
author | Lim Chee Aun <cheeaun@gmail.com> | 2010-09-14 12:33:56 +0800 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-09-20 09:49:11 -0400 |
commit | a936eb3c0982293940a3f3135fc85178bf17534d (patch) | |
tree | 0c8b6d32a08cb06c9684278534734ba43d32ca16 | |
parent | d3800991162ed281dc811552747494df012cfd49 (diff) | |
download | jquery-ui-a936eb3c0982293940a3f3135fc85178bf17534d.tar.gz jquery-ui-a936eb3c0982293940a3f3135fc85178bf17534d.zip |
Datepicker: Hightlight the curerent date, not the selected date. Fixes #5984 - Datepicker showing multiple months highlights selected day in all of them
-rw-r--r-- | ui/jquery.ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index d1d8a4d11..ccbcc6dac 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -1493,7 +1493,7 @@ $.extend(Datepicker.prototype, { (otherMonth && !showOtherMonths ? ' ' : // display for other months (unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' + (printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') + - (printDate.getTime() == selectedDate.getTime() ? ' ui-state-active' : '') + // highlight selected day + (printDate.getTime() == currentDate.getTime() ? ' ui-state-active' : '') + // highlight selected day (otherMonth ? ' ui-priority-secondary' : '') + // distinguish dates from other months '" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display selectable date printDate.setDate(printDate.getDate() + 1); |