Skip to content
Browse files

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
  • Loading branch information...
1 parent c6201ae commit 5a17b5ba394f8084fd98d65c5d0da0fb8fff6e7f @edavis10 edavis10 committed Jun 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/javascripts/calendar/calendar.js
View
2 public/javascripts/calendar/calendar.js
@@ -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;

0 comments on commit 5a17b5b

Please sign in to comment.
Something went wrong with that request. Please try again.