Monotone-Parent: c15520706f33ccebb112c1becc433bfe47acd1ee
Monotone-Revision: e00080932f4ede008b94710aac6b0477a9b70141 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-04-27T19:41:04 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
63ccf073b4
commit
a251c4da7e
|
@ -240,9 +240,12 @@
|
|||
"prio_9" = "Low";
|
||||
|
||||
/* access classes (privacy) */
|
||||
"privacy_PUBLIC" = "Public";
|
||||
"privacy_CONFIDENTIAL" = "Confidential";
|
||||
"privacy_PRIVATE" = "Private";
|
||||
"PUBLIC_vevent" = "Public Event";
|
||||
"CONFIDENTIAL_vevent" = "Confidential Event";
|
||||
"PRIVATE_vevent" = "Private Event";
|
||||
"PUBLIC_vtodo" = "Public Task";
|
||||
"CONFIDENTIAL_vtodo" = "Confidential Task";
|
||||
"PRIVATE_vtodo" = "Private Task";
|
||||
|
||||
/* status type */
|
||||
"status_" = "Not specified";
|
||||
|
|
|
@ -238,9 +238,12 @@
|
|||
"prio_9" = "Basse";
|
||||
|
||||
/* access classes (privacy) */
|
||||
"privacy_PUBLIC" = "Public";
|
||||
"privacy_CONFIDENTIAL" = "Date et heure seulement";
|
||||
"privacy_PRIVATE" = "Privé";
|
||||
"PUBLIC_vevent" = "Événement public";
|
||||
"CONFIDENTIAL_vevent" = "Événement confidentiel";
|
||||
"PRIVATE_vevent" = "Événement privé";
|
||||
"PUBLIC_vtodo" = "Tâche publique";
|
||||
"CONFIDENTIAL_vtodo" = "Tâche confidentielle";
|
||||
"PRIVATE_vtodo" = "Tâche privée";
|
||||
|
||||
/* status type */
|
||||
"status_" = "Non-spécifié";
|
||||
|
|
|
@ -184,7 +184,11 @@
|
|||
|
||||
- (NSString *) itemPrivacyText
|
||||
{
|
||||
return [self labelForKey: [NSString stringWithFormat: @"privacy_%@", item]];
|
||||
NSString *tag;
|
||||
|
||||
tag = [[self clientObject] componentTag];
|
||||
|
||||
return [self labelForKey: [NSString stringWithFormat: @"%@_%@", item, tag]];
|
||||
}
|
||||
|
||||
- (NSString *) itemStatusText
|
||||
|
@ -325,11 +329,6 @@
|
|||
return calendarList;
|
||||
}
|
||||
|
||||
- (NSString *) itemCalendarText
|
||||
{
|
||||
return item;
|
||||
}
|
||||
|
||||
- (NSString *) calendarsFoldersList
|
||||
{
|
||||
NSArray *calendars;
|
||||
|
|
|
@ -15,13 +15,11 @@
|
|||
<script type="text/javascript" rsrc:src="UIxComponentEditor.js"><!-- space --></script>
|
||||
|
||||
<div class="menu" id="privacy-menu">
|
||||
<ul id="">
|
||||
<li onmouseup="onMenuSetClassification(event, 'PUBLIC');"><var:string
|
||||
label:value="Public Event" /></li>
|
||||
<li onmouseup="onMenuSetClassification(event, 'CONFIDENTIAL');"><var:string
|
||||
label:value="Show Time and Date Only" /></li>
|
||||
<li onmouseup="onMenuSetClassification(event, 'PRIVATE');"><var:string
|
||||
label:value="Private Event" /></li>
|
||||
<ul id="itemPrivacyList">
|
||||
<var:foreach list="privacyClasses" item="item">
|
||||
<li var:classification="item"><var:string
|
||||
var:value="itemPrivacyText" /></li>
|
||||
</var:foreach>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
window.addEventListener("load", onComponentEditorLoad, false);
|
||||
|
||||
function onPopupAttendeesWindow(event) {
|
||||
if (event)
|
||||
event.preventDefault();
|
||||
|
@ -51,16 +49,14 @@ function onPopupDocumentWindow(event) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function onMenuSetClassification(event, classification) {
|
||||
function onMenuSetClassification(event) {
|
||||
event.cancelBubble = true;
|
||||
|
||||
var node = event.target;
|
||||
if (node.tagName != "LI")
|
||||
node = node.getParentWithTagName("li");
|
||||
if (node.parentNode.chosenNode)
|
||||
node.parentNode.chosenNode.removeClassName("_chosen");
|
||||
node.addClassName("_chosen");
|
||||
node.parentNode.chosenNode = node;
|
||||
var classification = this.getAttribute("classification");
|
||||
if (this.parentNode.chosenNode)
|
||||
this.parentNode.chosenNode.removeClassName("_chosen");
|
||||
this.addClassName("_chosen");
|
||||
this.parentNode.chosenNode = this;
|
||||
|
||||
log("classification: " + classification);
|
||||
var privacyInput = document.getElementById("privacy");
|
||||
|
@ -157,4 +153,10 @@ function onComponentEditorLoad(event) {
|
|||
var onSelectionChangeEvent = document.createEvent("Event");
|
||||
onSelectionChangeEvent.initEvent("change", false, false);
|
||||
list.dispatchEvent(onSelectionChangeEvent);
|
||||
|
||||
var menuItems = $("itemPrivacyList").childNodesWithTag("li");
|
||||
for (var i = 0; i < menuItems.length; i++)
|
||||
menuItems[i].addEventListener("mouseup", onMenuSetClassification, false);
|
||||
}
|
||||
|
||||
window.addEventListener("load", onComponentEditorLoad, false);
|
||||
|
|
Loading…
Reference in a new issue