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
Родитель b6e0cbdc25
Коммит 4e123bf4e6
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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");