From e8dbcb3977bfd22f41df28d4da00a74740861dcd Mon Sep 17 00:00:00 2001 From: "michael.buettner%sun.com" Date: Wed, 6 Dec 2006 17:54:30 +0000 Subject: [PATCH] bug #362921 moving event to new start-date does not update free/busy grid --- .../wcap/sun-calendar-event-dialog-attendees.xml | 11 ++++++++++- .../wcap/sun-calendar-event-dialog-freebusy.xml | 10 ++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/calendar/prototypes/wcap/sun-calendar-event-dialog-attendees.xml b/calendar/prototypes/wcap/sun-calendar-event-dialog-attendees.xml index 6a0031cf22a..dbfb78b63b3 100644 --- a/calendar/prototypes/wcap/sun-calendar-event-dialog-attendees.xml +++ b/calendar/prototypes/wcap/sun-calendar-event-dialog-attendees.xml @@ -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(); ]]> diff --git a/calendar/prototypes/wcap/sun-calendar-event-dialog-freebusy.xml b/calendar/prototypes/wcap/sun-calendar-event-dialog-freebusy.xml index 25c2eadb502..37757fa0568 100644 --- a/calendar/prototypes/wcap/sun-calendar-event-dialog-freebusy.xml +++ b/calendar/prototypes/wcap/sun-calendar-event-dialog-freebusy.xml @@ -1247,6 +1247,11 @@ + + + + + +