mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 12:25:23 +00:00
Now possible to set alarms on event invitations
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user