diff --git a/ChangeLog b/ChangeLog index 2ed0371b7..a21daf2e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,11 @@ the MailFieldNames attribute (an array) specified in every LDAP-based authentication sources. +2007-10-10 Francis Lachapelle + + * UI/Scheduler/UIxComponentEditor.m + ([UIxComponentEditor -componentCalendar]): returns the calendar + object of the current event. 2007-10-05 Ludovic Marcotte @@ -3658,7 +3663,7 @@ 2006-09-13 Wolfgang Sourdeau * UI/Contacts/UIxContactView.m: added many wrapper methods to - display blocks of data à la Thunderbird Addressbook. If data is + display blocks of data à la Thunderbird Addressbook. If data is available, those wrappers (around the NGVCard methods) will enclose the results in a proper HTML output with the correct label (if present), otherwise it will return an empty string. diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index b82a1b299..a972885d6 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -365,7 +365,11 @@ - (NSString *) componentCalendar { - return @"/"; + SOGoAppointmentFolder *calendar; + + calendar = [[self clientObject] container]; + + return calendar; } /* priorities */ diff --git a/UI/WebServerResources/UIxCalUserRightsEditor.js b/UI/WebServerResources/UIxCalUserRightsEditor.js index 6ef7e2fd6..174cf154c 100644 --- a/UI/WebServerResources/UIxCalUserRightsEditor.js +++ b/UI/WebServerResources/UIxCalUserRightsEditor.js @@ -3,7 +3,7 @@ function onCancelClick(event) { } function initACLButtons() { - $("cancelButton").addEventListener("click", onCancelClick, false); + Event.observe($("cancelButton"), "click", onCancelClick); } addEvent(window, "load", initACLButtons);