Monotone-Parent: d5a35d507386b7213ff2f2e4f5f37c9c22f0c2ae

Monotone-Revision: a11424d99fd81b4c47bf7609d4e4e9ec4e1b0ab2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-06-05T18:07:08
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2007-06-05 18:07:08 +00:00
parent b71c015193
commit 031779e4e9
3 changed files with 34 additions and 38 deletions

View file

@ -849,6 +849,7 @@
{
SOGoCalendarComponent *clientObject;
NSString *toolbarFilename;
iCalPerson *participant;
iCalPersonPartStat participationStatus;
SoSecurityManager *sm;
NSString *owner;
@ -856,7 +857,24 @@
sm = [SoSecurityManager sharedSecurityManager];
clientObject = [self clientObject];
if (![sm validatePermission: SOGoCalendarPerm_ModifyComponent
owner = [clientObject ownerInContext: context];
participant = [clientObject findParticipantWithUID: owner];
if (participant
&& ![sm validatePermission: SOGoCalendarPerm_RespondToComponent
onObject: clientObject
inContext: context])
{
participationStatus = [participant participationStatus];
/* Lightning does not manage participation status within tasks */
if (participationStatus == iCalPersonPartStatAccepted)
toolbarFilename = @"SOGoAppointmentObjectDecline.toolbar";
else if (participationStatus == iCalPersonPartStatDeclined)
toolbarFilename = @"SOGoAppointmentObjectAccept.toolbar";
else
toolbarFilename = @"SOGoAppointmentObjectAcceptOrDecline.toolbar";
}
else if (![sm validatePermission: SOGoCalendarPerm_ModifyComponent
onObject: clientObject
inContext: context])
{
@ -865,21 +883,6 @@
else
toolbarFilename = @"SOGoTaskObject.toolbar";
}
else if (![sm validatePermission: SOGoCalendarPerm_RespondToComponent
onObject: clientObject
inContext: context])
{
/* Lightning does not manage participation status within tasks */
owner = [clientObject ownerInContext: context];
participationStatus
= [[clientObject findParticipantWithUID: owner] participationStatus];
if (participationStatus == iCalPersonPartStatAccepted)
toolbarFilename = @"SOGoAppointmentObjectDecline.toolbar";
else if (participationStatus == iCalPersonPartStatDeclined)
toolbarFilename = @"SOGoAppointmentObjectAccept.toolbar";
else
toolbarFilename = @"SOGoAppointmentObjectAcceptOrDecline.toolbar";
}
else
toolbarFilename = @"SOGoComponentClose.toolbar";

View file

@ -174,8 +174,7 @@ function closeInvitationWindow() {
function modifyEventCallback(http) {
if (http.readyState == 4) {
if (http.status == 200) {
log("closing window...?");
if (queryParameters["mail-invitation"] == "yes")
if (queryParameters["mail-invitation"].toLowerCase() == "yes")
closeInvitationWindow();
else {
window.opener.setTimeout("refreshAppointmentsAndDisplay();", 100);

View file

@ -485,7 +485,7 @@ INPUT#searchValue
DIV.javascriptPopupBackground
{ position: absolute;
background-color: #999;
background-color: #d4d0c8;
-moz-opacity: 0.6;
opacity: 0.6;
filter: alpha(opacity=60);
@ -513,7 +513,7 @@ DIV.javascriptMessagePseudoWindow
opacity: 1.0;
filter: alpha(opacity=100);
color: #000;
background-color: #dedede; }
background-color: #d4d0c8; }
DIV.noJavascriptErrorMessage
{ top: 10em;
@ -524,10 +524,6 @@ DIV.noJavascriptErrorMessage A
{ float: right;
margin: 0px auto; }
A.button:hover
{ color: inherit;
background: #efebe7; }
INPUT.button:active,
A.button:active
{ color: -moz-buttonhovertext;
@ -539,7 +535,6 @@ A.button:active
INPUT.button,
A.button,
A[class~="_disabled"].button:hover,
A[class~="_disabled"].button:active
{ cursor: default;
padding: 1px .5em;
@ -559,7 +554,6 @@ A.button IMG
{ vertical-align: middle; }
A[class~="_disabled"].button,
A[class~="_disabled"].button:hover,
A[class~="_disabled"].button:active
{ color: #999;
background: inherit; }