From: Eric Davis Date: Wed, 30 Jun 2010 02:54:15 +0000 (+0000) Subject: Fix Chrome JavaScript bug in the pop up calendar. #5769 X-Git-Tag: 1.0.0~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5a17b5ba394f8084fd98d65c5d0da0fb8fff6e7f;p=redmine.git 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 --- diff --git a/public/javascripts/calendar/calendar.js b/public/javascripts/calendar/calendar.js index 3c8a5912e..43ba1c1c2 100644 --- a/public/javascripts/calendar/calendar.js +++ b/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;