summaryrefslogtreecommitdiffstats
path: root/public/javascripts/calendar
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-06-30 02:54:15 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-06-30 02:54:15 +0000
commit5a17b5ba394f8084fd98d65c5d0da0fb8fff6e7f (patch)
treeb9a78de4b34e9a9d187e74e4812d660d45ad78b8 /public/javascripts/calendar
parentc6201ae15b4fcb8ca17dbe39636e6efa626d7a03 (diff)
downloadredmine-5a17b5ba394f8084fd98d65c5d0da0fb8fff6e7f.tar.gz
redmine-5a17b5ba394f8084fd98d65c5d0da0fb8fff6e7f.zip
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
Diffstat (limited to 'public/javascripts/calendar')
-rw-r--r--public/javascripts/calendar/calendar.js2
1 files changed, 1 insertions, 1 deletions
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;