]> source.dussan.org Git - redmine.git/commitdiff
Fix Chrome JavaScript bug in the pop up calendar. #5769
authorEric Davis <edavis@littlestreamsoftware.com>
Wed, 30 Jun 2010 02:54:15 +0000 (02:54 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Wed, 30 Jun 2010 02:54:15 +0000 (02:54 +0000)
Contributed by Holger Just

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3822 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/calendar/calendar.js

index 3c8a5912e1dbbc4f03e3e74efe8eb66d5979db1b..43ba1c1c23adf07c99aa28394045f98af3687052 100644 (file)
@@ -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;