Skip to content

Commit

Permalink
Merge branch 'master' of yuisource.corp.yahoo.com:yui3
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith committed Mar 5, 2012
2 parents 975af71 + a123bc8 commit e4310d4
Show file tree
Hide file tree
Showing 17 changed files with 66 additions and 49 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.yui3-skin-night .yui3-calendar-content {
padding:10px;
font-size:0.8em;
font-family:"Lucida Grande", "Lucida Sans", Calibri, Helvetica, Arial, sans-serif;
color: #CBCBCB;
border: 1px solid #303030;
background: #151515; /* Old browsers */
Expand Down Expand Up @@ -35,6 +33,7 @@
.yui3-skin-night .yui3-calendar-day,
.yui3-skin-night .yui3-calendar-prevmonth-day,
.yui3-skin-night .yui3-calendar-nextmonth-day {
padding:5px;
border: 1px solid #151515;
background: #262727;
text-align:center;
Expand Down
2 changes: 1 addition & 1 deletion build/calendar-base/assets/skins/night/calendar-base.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions build/calendar-base/assets/skins/sam/calendar-base-skin.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.yui3-skin-sam .yui3-calendar-content {
padding:10px;
font-size:0.8em;
font-family:"Lucida Grande", "Lucida Sans", Calibri, Helvetica, Arial, sans-serif;
color: #000000;
border: 1px solid gray;
background: #f2f2f2; /* Old browsers */
Expand Down Expand Up @@ -34,6 +32,7 @@
.yui3-skin-sam .yui3-calendar-day,
.yui3-skin-sam .yui3-calendar-prevmonth-day,
.yui3-skin-sam .yui3-calendar-nextmonth-day {
padding:5px;
border: 1px solid #CCCCCC;
background: #FFFFFF;
text-align:center;
Expand Down
2 changes: 1 addition & 1 deletion build/calendar-base/assets/skins/sam/calendar-base.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions build/calendar/assets/skins/night/calendar-base-skin.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.yui3-skin-night .yui3-calendar-content {
padding:10px;
font-size:0.8em;
font-family:"Lucida Grande", "Lucida Sans", Calibri, Helvetica, Arial, sans-serif;
color: #CBCBCB;
border: 1px solid #303030;
background: #151515; /* Old browsers */
Expand Down Expand Up @@ -35,6 +33,7 @@
.yui3-skin-night .yui3-calendar-day,
.yui3-skin-night .yui3-calendar-prevmonth-day,
.yui3-skin-night .yui3-calendar-nextmonth-day {
padding:5px;
border: 1px solid #151515;
background: #262727;
text-align:center;
Expand Down
3 changes: 1 addition & 2 deletions build/calendar/assets/skins/sam/calendar-base-skin.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.yui3-skin-sam .yui3-calendar-content {
padding:10px;
font-size:0.8em;
font-family:"Lucida Grande", "Lucida Sans", Calibri, Helvetica, Arial, sans-serif;
color: #000000;
border: 1px solid gray;
background: #f2f2f2; /* Old browsers */
Expand Down Expand Up @@ -34,6 +32,7 @@
.yui3-skin-sam .yui3-calendar-day,
.yui3-skin-sam .yui3-calendar-prevmonth-day,
.yui3-skin-sam .yui3-calendar-nextmonth-day {
padding:5px;
border: 1px solid #CCCCCC;
background: #FFFFFF;
text-align:center;
Expand Down
19 changes: 11 additions & 8 deletions build/calendar/calendar-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
*/
initializer : function () {
this.plug(Y.Plugin.CalendarNavigator);


this._keyEvents = [];
this._highlightedDateNode = null;
this._lastSelectedDate = null;
},

/**
Expand Down Expand Up @@ -108,9 +113,6 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
var newNode = this._dateToNode(oDate);
newNode.focus();
newNode.addClass(CAL_DAY_HILITED);
//this._highlightedDateNode.set("tabIndex", -1);


},

/**
Expand Down Expand Up @@ -152,14 +154,16 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
*/
_focusCalendarCell : function (ev) {
this._highlightedDateNode = ev.target;
ev.stopPropagation();
},

/**
* Handler for gain of focus of calendar grid
* @method _focusCalendarGrid
* @protected
*/
_focusCalendarGrid : function (ev) {
_focusCalendarGrid : function (ev) {
this._unhighlightCurrentDateNode();
this._highlightedDateNode = null;
},

Expand All @@ -175,7 +179,6 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
dayNum = 0,
dir = '';


switch(keyCode) {
case KEY_DOWN:
dayNum = 7;
Expand Down Expand Up @@ -211,14 +214,14 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
}
break;
}


if (keyCode == KEY_DOWN || keyCode == KEY_UP || keyCode == KEY_LEFT || keyCode == KEY_RIGHT) {

if (curDate == null) {
curDate = ydate.addMonths(this.get("date"), gridNum);
dayNum = 0;
}


if (keyCode == KEY_DOWN || keyCode == KEY_UP || keyCode == KEY_LEFT || keyCode == KEY_RIGHT) {
ev.preventDefault();
var newDate = ydate.addDays(curDate, dayNum),
startDate = this.get("date"),
Expand Down
Loading

0 comments on commit e4310d4

Please sign in to comment.