Bug 365639 Navigation in Multiweek view is faulty if 'Previous weeks to show' is not None. r=lilmatt, mvl

This commit is contained in:
jminta%gmail.com 2007-02-13 02:27:28 +00:00
parent b0170abf77
commit 1de1278fca

View File

@ -211,7 +211,8 @@
var d1 = this.startDay.clone();
var savedSelectedDay = this.selectedDay.clone();
// aNumber only corresponds to the number of weeks to move
d1.day += 7*aNumber;
// make sure to compensate for previous weeks in view too
d1.day += 7 * (aNumber + getPrefSafe("calendar.previousweeks.inview", 4));
d1.normalize();
this.goToDay(d1);
var viewElement = document.getAnonymousElementByAttribute(this, "anonid", "view-element");