Monotone-Parent: f050642fcfd85a888681137f9572e2646d4cadc9
Monotone-Revision: 4836e88278f663b165807bc739419dea0b0b3c73 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-06-05T04:46:12 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
d5ae782764
commit
c5232d42a5
|
@ -1,5 +1,9 @@
|
||||||
2010-06-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2010-06-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* UI/Scheduler/UIxCalendarProperties.m (-calDavURL, -webDavICSURL)
|
||||||
|
(-webDavXMLURL): new accessors for the URL now appearing at the
|
||||||
|
bottom of the properties page.
|
||||||
|
|
||||||
* UI/WebServerResources/generic.js (onBodyClickContextMenu):
|
* UI/WebServerResources/generic.js (onBodyClickContextMenu):
|
||||||
leave the context menu to appear on "A" elements with a
|
leave the context menu to appear on "A" elements with a
|
||||||
"clickableLink" class.
|
"clickableLink" class.
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Tarefa Confidencial)";
|
||||||
"Show alarms" = "Show alarms";
|
"Show alarms" = "Show alarms";
|
||||||
"Show tasks" = "Show tasks";
|
"Show tasks" = "Show tasks";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
||||||
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Důvěrný úkol)";
|
||||||
"Show alarms" = "Zobrazit upomínky";
|
"Show alarms" = "Zobrazit upomínky";
|
||||||
"Show tasks" = "Zobrazit úkoly";
|
"Show tasks" = "Zobrazit úkoly";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
||||||
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Vertrouwelijke taak)";
|
||||||
"Show alarms" = "Show alarms";
|
"Show alarms" = "Show alarms";
|
||||||
"Show tasks" = "Show tasks";
|
"Show tasks" = "Show tasks";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
||||||
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Confidential task)";
|
||||||
"Show alarms" = "Show alarms";
|
"Show alarms" = "Show alarms";
|
||||||
"Show tasks" = "Show tasks";
|
"Show tasks" = "Show tasks";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
||||||
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Tâche confidentielle)";
|
||||||
"Show alarms" = "Afficher les alarmes";
|
"Show alarms" = "Afficher les alarmes";
|
||||||
"Show tasks" = "Afficher les tâches";
|
"Show tasks" = "Afficher les tâches";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Liens vers cet agenda";
|
||||||
|
"CalDAV url" = "Accès en CalDAV";
|
||||||
|
"WebDAV ICS URL" = "Représentation ICS en WebDAV";
|
||||||
|
"WebDAV XML URL" = "Représentation XML en WebDAV";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Veuillez spécifier un chiffre supérieur ou égal à 1 dans le champ Jours.";
|
"dayFieldInvalid" = "Veuillez spécifier un chiffre supérieur ou égal à 1 dans le champ Jours.";
|
||||||
"weekFieldInvalid" = "Veuillez spécifier un chiffre supérieur ou égal à 1 dans le champ Semaine(s).";
|
"weekFieldInvalid" = "Veuillez spécifier un chiffre supérieur ou égal à 1 dans le champ Semaine(s).";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Vertrauliche Aufgabe)";
|
||||||
"Show alarms" = "Zeige Erinnerungen";
|
"Show alarms" = "Zeige Erinnerungen";
|
||||||
"Show tasks" = "Zeige Aufgaben";
|
"Show tasks" = "Zeige Aufgaben";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Im Feld Tage ist ein numerischer Wert größer oder gleich 1 erforderlich.";
|
"dayFieldInvalid" = "Im Feld Tage ist ein numerischer Wert größer oder gleich 1 erforderlich.";
|
||||||
"weekFieldInvalid" = "Im Feld Woche(n) ist ein numerischer Wert größer oder gleich 1 erforderlich.";
|
"weekFieldInvalid" = "Im Feld Woche(n) ist ein numerischer Wert größer oder gleich 1 erforderlich.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Bizalmas feladat)";
|
||||||
"Show alarms" = "Show alarms";
|
"Show alarms" = "Show alarms";
|
||||||
"Show tasks" = "Show tasks";
|
"Show tasks" = "Show tasks";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
||||||
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Attività confidenziale)";
|
||||||
"Show alarms" = "Show alarms";
|
"Show alarms" = "Show alarms";
|
||||||
"Show tasks" = "Show tasks";
|
"Show tasks" = "Show tasks";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
||||||
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Confidential task)";
|
||||||
"Show alarms" = "Show alarms";
|
"Show alarms" = "Show alarms";
|
||||||
"Show tasks" = "Show tasks";
|
"Show tasks" = "Show tasks";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
||||||
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Tarea confidencial)";
|
||||||
"Show alarms" = "Show alarms";
|
"Show alarms" = "Show alarms";
|
||||||
"Show tasks" = "Show tasks";
|
"Show tasks" = "Show tasks";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
||||||
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Konfidentiell uppgift)";
|
||||||
"Show alarms" = "Visa alarm";
|
"Show alarms" = "Visa alarm";
|
||||||
"Show tasks" = "Visa uppgifter";
|
"Show tasks" = "Visa uppgifter";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Ange ett numeriskt värde in dagsfältet större än eller lika med 1.";
|
"dayFieldInvalid" = "Ange ett numeriskt värde in dagsfältet större än eller lika med 1.";
|
||||||
"weekFieldInvalid" = "Ange ett numeriskt värde in veckofältet större än eller lika med 1.";
|
"weekFieldInvalid" = "Ange ett numeriskt värde in veckofältet större än eller lika med 1.";
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
@interface UIxCalendarProperties : UIxComponent
|
@interface UIxCalendarProperties : UIxComponent
|
||||||
{
|
{
|
||||||
SOGoAppointmentFolder *calendar;
|
SOGoAppointmentFolder *calendar;
|
||||||
|
NSString *baseCalDAVURL;
|
||||||
BOOL reloadTasks;
|
BOOL reloadTasks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#import <Foundation/NSDictionary.h>
|
#import <Foundation/NSDictionary.h>
|
||||||
#import <Foundation/NSEnumerator.h>
|
#import <Foundation/NSEnumerator.h>
|
||||||
|
#import <Foundation/NSURL.h>
|
||||||
|
|
||||||
#import <NGObjWeb/WORequest.h>
|
#import <NGObjWeb/WORequest.h>
|
||||||
|
|
||||||
|
@ -39,12 +40,19 @@
|
||||||
if ((self = [super init]))
|
if ((self = [super init]))
|
||||||
{
|
{
|
||||||
calendar = [self clientObject];
|
calendar = [self clientObject];
|
||||||
|
baseCalDAVURL = nil;
|
||||||
reloadTasks = NO;
|
reloadTasks = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) dealloc
|
||||||
|
{
|
||||||
|
[baseCalDAVURL release];
|
||||||
|
[super dealloc];
|
||||||
|
}
|
||||||
|
|
||||||
- (NSString *) calendarID
|
- (NSString *) calendarID
|
||||||
{
|
{
|
||||||
return [calendar folderReference];
|
return [calendar folderReference];
|
||||||
|
@ -241,4 +249,36 @@
|
||||||
return [self jsCloseWithRefreshMethod: action];
|
return [self jsCloseWithRefreshMethod: action];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSString *) _baseCalDAVURL
|
||||||
|
{
|
||||||
|
NSString *davURL;
|
||||||
|
|
||||||
|
if (!baseCalDAVURL)
|
||||||
|
{
|
||||||
|
davURL = [[calendar realDavURL] absoluteString];
|
||||||
|
if ([davURL hasSuffix: @"/"])
|
||||||
|
baseCalDAVURL = [davURL substringToIndex: [davURL length] - 1];
|
||||||
|
else
|
||||||
|
baseCalDAVURL = davURL;
|
||||||
|
[baseCalDAVURL retain];
|
||||||
|
}
|
||||||
|
|
||||||
|
return baseCalDAVURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) calDavURL
|
||||||
|
{
|
||||||
|
return [NSString stringWithFormat: @"%@/", [self _baseCalDAVURL]];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) webDavICSURL
|
||||||
|
{
|
||||||
|
return [NSString stringWithFormat: @"%@.ics", [self _baseCalDAVURL]];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) webDavXMLURL
|
||||||
|
{
|
||||||
|
return [NSString stringWithFormat: @"%@.xml", [self _baseCalDAVURL]];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -521,6 +521,11 @@ vtodo_class2 = "(Конфіденційне завдання)";
|
||||||
"Show alarms" = "Сповіщення";
|
"Show alarms" = "Сповіщення";
|
||||||
"Show tasks" = "Завдання";
|
"Show tasks" = "Завдання";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Будь ласка, зазначте числове значення в полі дні, що більше або рівно 1.";
|
"dayFieldInvalid" = "Будь ласка, зазначте числове значення в полі дні, що більше або рівно 1.";
|
||||||
"weekFieldInvalid" = "Будь ласка, зазначте числове значення в полі тиждень(і), що більше або рівно 1.";
|
"weekFieldInvalid" = "Будь ласка, зазначте числове значення в полі тиждень(і), що більше або рівно 1.";
|
||||||
|
|
|
@ -529,6 +529,11 @@ vtodo_class2 = "(Tasg gyhoeddus)";
|
||||||
"Show alarms" = "Show alarms";
|
"Show alarms" = "Show alarms";
|
||||||
"Show tasks" = "Show tasks";
|
"Show tasks" = "Show tasks";
|
||||||
|
|
||||||
|
"Links to this Calendar" = "Links to this Calendar";
|
||||||
|
"CalDAV url" = "CalDAV url";
|
||||||
|
"WebDAV ICS URL" = "WebDAV ICS URL";
|
||||||
|
"WebDAV XML URL" = "WebDAV XML URL";
|
||||||
|
|
||||||
/* Error messages */
|
/* Error messages */
|
||||||
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
"dayFieldInvalid" = "Please specify a numerical value in the Days field greater or equal to 1.";
|
||||||
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
"weekFieldInvalid" = "Please specify a numerical value in the Week(s) field greater or equal to 1.";
|
||||||
|
|
|
@ -99,6 +99,17 @@
|
||||||
/></label></div></var:if>
|
/></label></div></var:if>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
<var:if condition="isWebCalendar" const:negate="YES"
|
||||||
|
><fieldset id="davLinks">
|
||||||
|
<legend><var:string label:value="Links to this Calendar"/></legend>
|
||||||
|
<a const:class="clickableLink" var:href="calDavURL"
|
||||||
|
><var:string label:value="CalDAV url"/></a><br/>
|
||||||
|
<a const:class="clickableLink" var:href="webDavICSURL"
|
||||||
|
><var:string label:value="WebDAV ICS URL"/></a><br/>
|
||||||
|
<a const:class="clickableLink" var:href="webDavXMLURL"
|
||||||
|
><var:string label:value="WebDAV XML URL"/></a>
|
||||||
|
</fieldset></var:if>
|
||||||
|
|
||||||
<div id="buttons">
|
<div id="buttons">
|
||||||
<a href="#" class="button actionButton" id="okButton"
|
<a href="#" class="button actionButton" id="okButton"
|
||||||
name="okButton">
|
name="okButton">
|
||||||
|
|
|
@ -2231,7 +2231,7 @@ function onCalendarModify(event) {
|
||||||
var url = ApplicationBaseURL + calendarID + "/properties";
|
var url = ApplicationBaseURL + calendarID + "/properties";
|
||||||
var windowID = sanitizeWindowName(calendarID + " properties");
|
var windowID = sanitizeWindowName(calendarID + " properties");
|
||||||
var width = 310;
|
var width = 310;
|
||||||
var height = 275;
|
var height = 330;
|
||||||
var isWebCalendar = false;
|
var isWebCalendar = false;
|
||||||
if (UserSettings['Calendar']
|
if (UserSettings['Calendar']
|
||||||
&& UserSettings['Calendar']['WebCalendars']) {
|
&& UserSettings['Calendar']['WebCalendars']) {
|
||||||
|
@ -2245,10 +2245,12 @@ function onCalendarModify(event) {
|
||||||
if (owner == UserLogin) {
|
if (owner == UserLogin) {
|
||||||
height += 24;
|
height += 24;
|
||||||
}
|
}
|
||||||
if (isWebCalendar)
|
if (isWebCalendar) {
|
||||||
height += 41;
|
height -= 38;
|
||||||
else if (calendarID == "/personal")
|
}
|
||||||
|
else if (calendarID == "/personal") {
|
||||||
height -= 26;
|
height -= 26;
|
||||||
|
}
|
||||||
|
|
||||||
var properties = window.open(url, windowID,
|
var properties = window.open(url, windowID,
|
||||||
"width="+width+",height="+height+",resizable=0");
|
"width="+width+",height="+height+",resizable=0");
|
||||||
|
|
|
@ -53,6 +53,9 @@ INPUT#calendarSyncTag
|
||||||
LABEL
|
LABEL
|
||||||
{ white-space: nowrap; }
|
{ white-space: nowrap; }
|
||||||
|
|
||||||
|
#davLinks A
|
||||||
|
{ margin-left: 60px; }
|
||||||
|
|
||||||
#webCalendarUrl SPAN.content
|
#webCalendarUrl SPAN.content
|
||||||
{ white-space: nowrap;
|
{ white-space: nowrap;
|
||||||
overflow: hidden; }
|
overflow: hidden; }
|
||||||
|
|
Loading…
Reference in New Issue