mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-18 03:38:49 +00:00
See ChangeLog
Monotone-Parent: be9e28d5d42ed05605b27d2127cf29b07678495b Monotone-Revision: 5de6a9584cf27a2c1dad8d1ab8b84fc9ddab2720 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2011-04-25T10:31:08 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -96,6 +96,8 @@ function validateAptEditor() {
|
||||
}
|
||||
}
|
||||
|
||||
AIM.submit($(document.editform), {'onComplete' : onEventPostComplete});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -176,6 +178,21 @@ function addContact(tag, fullContactName, contactId, contactName, contactEmail)
|
||||
return false;
|
||||
}
|
||||
|
||||
function onEventPostComplete(response) {
|
||||
if (response && response.length > 0) {
|
||||
var jsonResponse = response.evalJSON();
|
||||
if (jsonResponse["status"] == "success") {
|
||||
if (window.opener)
|
||||
window.opener.refreshEventsAndDisplay();
|
||||
window.close();
|
||||
}
|
||||
else {
|
||||
var message = jsonResponse["message"];
|
||||
alert(jsonResponse["message"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function saveEvent(sender) {
|
||||
if (validateAptEditor()) {
|
||||
document.forms['editform'].attendees.value = Object.toJSON($(attendees));
|
||||
|
||||
Reference in New Issue
Block a user