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
-14
View File
@@ -529,20 +529,6 @@ function onMenuRawEvent(event) {
openGenericWindow.delay(0.1, url);
}
function modifyEvent(sender, modification, parameters) {
var currentLocation = '' + window.location;
var arr = currentLocation.split("/");
arr[arr.length-1] = modification;
document.modifyEventAjaxRequest = triggerAjaxRequest(arr.join("/"),
modifyEventCallback,
modification,
parameters,
{ "Content-type": "application/x-www-form-urlencoded" });
return false;
}
function closeInvitationWindow() {
var closeDiv = document.createElement("div");
document.body.appendChild(closeDiv);
@@ -1,10 +1,8 @@
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2005 SKYRIX Software AG
Copyright (C) 2006-2013 Inverse inc.
Copyright (C) 2006-2014 Inverse inc.
This file is part of SOGo.
SOGo is free software; you can redistribute it and/or modify it under
+15 -19
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) {