Now possible to set alarms on event invitations

This commit is contained in:
Ludovic Marcotte
2014-12-16 09:20:27 -05:00
parent 3eac0f5261
commit fb6ef3aa8a
23 changed files with 461 additions and 281 deletions

View File

@@ -386,26 +386,22 @@ function onPopupReminderWindow(event) {
}
function onOkButtonClick (e) {
var item = $("replyList");
var value = parseInt(item.options[item.selectedIndex].value);
var action = "";
var parameters = "";
if (value == 0)
action = 'accept';
else if (value == 1)
action = 'decline';
else if (value == 2)
action = 'needsaction';
else if (value == 3)
action = 'tentative';
else if (value == 4) {
var url = ApplicationBaseURL + "/" + activeCalendar + "/" + activeComponent;
delegateInvitation(url, modifyEventCallback);
}
var jsonData = Form.serialize(document.forms['rsvpform'], true);
if (action != "")
modifyEvent (item, action, parameters);
var input = $("delegatedTo");
if (input && input.readAttribute("uid") != null) {
jsonData['delegatedTo'] = input.readAttribute("uid");
}
triggerAjaxRequest(document.forms['rsvpform'].readAttribute("action"),
modifyEventCallback,
null,
Object.toJSON(jsonData),
{ "content-type": "application/json"}
);
return false;
}
function onCancelButtonClick (e) {