Bug 336287 ��� Multiweek view has inconsistent/faulty navigation, r=daniel, mvl

This commit is contained in:
jminta%gmail.com 2006-12-28 01:23:07 +00:00
parent c7b64e86a2
commit 6a6c3b8c01

View File

@ -212,11 +212,16 @@
<method name="moveView">
<parameter name="aNumber"/>
<body><![CDATA[
var d1 = this.selectedDay.clone();
var d1 = this.startDay.clone();
var savedSelectedDay = this.selectedDay.clone();
// aNumber only corresponds to the number of weeks to move
d1.day += 7*aNumber;
d1.normalize();
this.goToDay(d1);
var viewElement = document.getAnonymousElementByAttribute(this, "anonid", "view-element");
savedSelectedDay.day += 7*aNumber;
savedSelectedDay.normalize();
viewElement.selectedDay = savedSelectedDay;
]]></body>
</method>
<method name="setNavLabels">