From bb86546829526bbcf9f8ae37acd2f1f2a9764276 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 23 Aug 2007 22:10:01 +0000 Subject: [PATCH] Monotone-Parent: 629c2dca3a0b44cbcdea7cfee80dec01b2841d80 Monotone-Revision: 6ba5493c91f538701d638d36d00899eaa08ff21f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-23T22:10:01 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/SchedulerUI.js | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index a5ceafa4d..0fb99c34f 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -174,21 +174,22 @@ function closeInvitationWindow() { } function modifyEventCallback(http) { - if (http.readyState == 4) { - if (http.status == 200) { - if (queryParameters["mail-invitation"].toLowerCase() == "yes") - closeInvitationWindow(); - else { - window.opener.setTimeout("refreshEventsAndDisplay();", 100); - window.setTimeout("window.close();", 100); - } - } + if (http.readyState == 4) { + if (http.status == 200) { + var mailInvitation = queryParameters["mail-invitation"]; + if (mailInvitation && mailInvitation.toLowerCase() == "yes") + closeInvitationWindow(); else { -// log("showing alert..."); - window.alert(labels["eventPartStatModificationError"]); + window.opener.setTimeout("refreshEventsAndDisplay();", 100); + window.setTimeout("window.close();", 100); } - document.modifyEventAjaxRequest = null; - } + } + else { +// log("showing alert..."); + window.alert(labels["eventPartStatModificationError"]); + } + document.modifyEventAjaxRequest = null; + } } function deleteEventCallback(http) {