Defect #5769 » 001_fixed_integer_subtraction.diff
| public/javascripts/calendar/calendar.js (working copy) | ||
|---|---|---|
|
var day1 = (date.getDay() - this.firstDayOfWeek) % 7;
|
||
|
if (day1 < 0)
|
||
|
day1 += 7;
|
||
|
date.setDate(-day1);
|
||
|
date.setDate(0-day1);
|
||
|
date.setDate(date.getDate() + 1);
|
||
|
var row = this.tbody.firstChild;
|
||
- « Previous
- 1
- 2
- Next »