Merge "Upgrade bootstrap-datepicker.js to latest version"

This commit is contained in:
Jenkins 2014-04-03 19:25:53 +00:00 committed by Gerrit Code Review
commit cc15472881
1 changed files with 8 additions and 4 deletions

View File

@ -199,16 +199,20 @@
var nextMonth = new Date(prevMonth);
nextMonth.setDate(nextMonth.getDate() + 42);
nextMonth = nextMonth.valueOf();
html = [];
var clsName;
var html = [];
var clsName,
prevY,
prevM;
while(prevMonth.valueOf() < nextMonth) {
if (prevMonth.getDay() === this.weekStart) {
html.push('<tr>');
}
clsName = this.onRender(prevMonth);
if (prevMonth.getMonth() < month) {
prevY = prevMonth.getFullYear();
prevM = prevMonth.getMonth();
if ((prevM < month && prevY === year) || prevY < year) {
clsName += ' old';
} else if (prevMonth.getMonth() > month) {
} else if ((prevM > month && prevY === year) || prevY > year) {
clsName += ' new';
}
if (prevMonth.valueOf() === currentDate) {