Fix Chrome JavaScript bug in the pop up calendar. #5769

Contributed by Holger Just

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3822 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis 2010-06-30 02:54:15 +00:00
parent c6201ae15b
commit 5a17b5ba39
1 changed files with 1 additions and 1 deletions

View File

@ -1105,7 +1105,7 @@ Calendar.prototype._init = function (firstDayOfWeek, date) {
var day1 = (date.getDay() - this.firstDayOfWeek) % 7; var day1 = (date.getDay() - this.firstDayOfWeek) % 7;
if (day1 < 0) if (day1 < 0)
day1 += 7; day1 += 7;
date.setDate(-day1); date.setDate(0-day1);
date.setDate(date.getDate() + 1); date.setDate(date.getDate() + 1);
var row = this.tbody.firstChild; var row = this.tbody.firstChild;