зеркало из https://github.com/mozilla/pjs.git
Bug 365639 Navigation in Multiweek view is faulty if 'Previous weeks to show' is not None. r=lilmatt, mvl
This commit is contained in:
Родитель
b6e0cbdc25
Коммит
4e123bf4e6
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче