return self->appointment;
}
-/* JavaScript */
-
-- (NSString *)jsCode {
- static NSString *script = \
- @"function addToTable(tableId, type, cn, dn, email, uid, sn) {\n"
- @" var test = document.getElementById(email);"
- @" if(test)"
- @" return;"
- @""
- @" var table = document.getElementById(tableId);"
- @" var tr = document.createElement('tr');"
- @" var td, checkbox, text;"
- @""
- @" td = document.createElement('td');"
- @" checkbox = document.createElement('input');"
- @" checkbox.setAttribute('type', 'checkbox');"
- @" checkbox.setAttribute('checked', 'checked');"
- @" checkbox.setAttribute('value', email + ';' + cn);"
- @" checkbox.setAttribute('id', email);"
- @" checkbox.setAttribute('name', tableId);"
- @" td.appendChild(checkbox);"
- @" tr.appendChild(td);"
- @" td = document.createElement('td');"
- @" text = document.createTextNode(cn);"
- @" td.appendChild(text);"
- @" tr.appendChild(td);"
- @" table.appendChild(tr);"
- @"}\n"
- @"function addParticipant(type, cn, dn, email, uid, sn) {\n"
- @" addToTable('participants', type, cn, dn, email, uid, sn);\n"
- @"}\n"
- @"function addResource(type, cn, dn, email, uid, sn) {\n"
- @" addToTable('resources', type, cn, dn, email, uid, sn);\n"
- @"}\n"
- @"";
- return script;
-}
-
/* helper */
- (NSString *)_completeURIForMethod:(NSString *)_method {
return [self completeHrefForMethod:uri];
}
-/* email, cn TODO: unused now?*/
-
-- (NSString *)combinedCNAndEmailForUser {
- return [NSString stringWithFormat:@"%@;%@",
- [self emailForUser],
- [self cnForUser]];
-}
-
-- (NSString *)combinedCNAndEmail {
- return [NSString stringWithFormat:@"%@;%@",
- [self->item rfc822Email],
- [self->item cnForDisplay]];
-}
-
/* new */
- (id)newAction {