Commit 5a17b5ba authored by Eric Davis's avatar Eric Davis

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
parent c6201ae1
......@@ -1105,7 +1105,7 @@ Calendar.prototype._init = function (firstDayOfWeek, date) {
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment