Skip to content

Commit

Permalink
Fix an issue the cell of next month appears to be selectable
Browse files Browse the repository at this point in the history
Fix an issue when Feb 1st is Saturday Mar 2nd appears to be selectable.
See Issue yui#1540: yui#1540
  • Loading branch information
shunner authored and okuryu committed Jan 12, 2014
1 parent dd919cd commit 74a1930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/calendar/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Calendar Change History
@VERSION@
------

* No changes.
* Fix an issue when Feb 1st is Saturday Mar 2nd appears to be selectable. (@shunner)

3.14.1
------
Expand Down
2 changes: 1 addition & 1 deletion src/calendar/js/calendar-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
curCell.removeClass(CAL_NEXTMONTH_DAY).addClass(CAL_DAY);
} else {
curCell.setContent(" ");
curCell.addClass(CAL_NEXTMONTH_DAY).addClass(CAL_DAY);
curCell.removeClass(CAL_DAY).addClass(CAL_NEXTMONTH_DAY);
}
break;
case 1:
Expand Down

0 comments on commit 74a1930

Please sign in to comment.