Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions css/cuppa-datepicker-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ body{
}
.wc-month-row > div:nth-child(1), .wc-year-row > div:nth-child(1){
line-height: 28px;
text-transform: uppercase;
}
.wc-prev, .wc-next{
font-size: 18px;
Expand Down
14 changes: 4 additions & 10 deletions js/cuppa-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@


// these are labels for the days of the week
var cal_days_labels = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
var cal_full_days_lables = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
var cal_days_labels = moment.weekdaysShort();
var cal_full_days_lables = moment.weekdays();

// these are human-readable month name labels, in order
var cal_months_labels = ['January', 'February', 'March', 'April',
'May', 'June', 'July', 'August', 'September',
'October', 'November', 'December'];
var cal_months_labels_short = ['JAN', 'FEB', 'MAR', 'APR',
'MAY', 'JUN', 'JUL', 'AUG', 'SEP',
'OCT', 'NOV', 'DEC'];
var cal_months_labels = moment.months();
var cal_months_labels_short = moment.monthsShort();

// these are the days of the week for each month, in order
var cal_days_in_month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
Expand Down Expand Up @@ -362,7 +358,6 @@

self.el.bigBanner.appendChild(self.el.bigBanner.monthAndYear);
self.el.calendarPopup.appendChild(self.el.bigBanner);
console.log(self);
}
self.el.headerDetails = document.createElement('div');
self.el.headerDetails.setAttribute('class','wc-details');
Expand Down Expand Up @@ -529,7 +524,6 @@
self.date.setMonth(self.date.getMonth() - 1);
}

console.log(this.date);
self.updateHeader();
self.destroyDaysTable();
self.createDaysView();
Expand Down