bug #362921 moving event to new start-date does not update free/busy grid

This commit is contained in:
michael.buettner%sun.com 2006-12-06 17:54:30 +00:00
Родитель 10d6dc282a
Коммит aa54709697
2 изменённых файлов: 20 добавлений и 1 удалений

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

@ -2191,8 +2191,12 @@
// tell the freebusy grid about the new start/enddate
var grid = document.getAnonymousElementByAttribute(this, "anonid", "freebusy-grid");
var refresh = (grid.startDate.compare(this.mStartDate) != 0) ||
(grid.endDate.compare(this.mEndDate) != 0);
grid.startDate = this.mStartDate;
grid.endDate = this.mEndDate;
if(refresh)
grid.forceRefresh();
// expand to 24hrs if the new range is outside of the default range.
var kDefaultTimezone = calendarDefaultTimezone();
@ -2968,11 +2972,16 @@
timebar.startDate = this.mStartDate;
timebar.endDate = this.mEndDate;
timebar.refresh();
// tell the freebusy grid about the new start/enddate
var grid = document.getAnonymousElementByAttribute(this, "anonid", "freebusy-grid");
var refresh = (grid.startDate.compare(this.mStartDate) != 0) ||
(grid.endDate.compare(this.mEndDate) != 0);
grid.startDate = this.mStartDate;
grid.endDate = this.mEndDate;
if(refresh)
grid.forceRefresh();
]]>
</handler>

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

@ -1247,6 +1247,11 @@
</constructor>
<property name="startDate">
<getter>
<![CDATA[
return this.mStartDate;
]]>
</getter>
<setter>
<![CDATA[
this.mStartDate = val.clone();
@ -1260,6 +1265,11 @@
</property>
<property name="endDate">
<getter>
<![CDATA[
return this.mEndDate;
]]>
</getter>
<setter>
<![CDATA[
this.mEndDate = val.clone();