mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-06 07:36:24 +00:00
Monotone-Parent: 22f95e63e1a97e2d86b84a031f18f81f1020db88
Monotone-Revision: a9e348832ad8000c19b9f01be30bd0b6ac2cad46 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-06-30T20:34:51 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -63,8 +63,7 @@ function onMenuSetClassification(event) {
|
||||
this.addClassName("_chosen");
|
||||
this.parentNode.chosenNode = this;
|
||||
|
||||
// log("classification: " + classification);
|
||||
var privacyInput = document.getElementById("privacy");
|
||||
var privacyInput = $("privacy");
|
||||
privacyInput.value = classification;
|
||||
}
|
||||
|
||||
@@ -95,19 +94,17 @@ function initializeDocumentHref() {
|
||||
|
||||
function initializePrivacyMenu() {
|
||||
var privacy = $("privacy").value.toUpperCase();
|
||||
if (privacy.length > 0) {
|
||||
var privacyMenu = $("privacy-menu").childNodesWithTag("ul")[0];
|
||||
var menuEntries = $(privacyMenu).childNodesWithTag("li");
|
||||
var chosenNode;
|
||||
if (privacy == "CONFIDENTIAL")
|
||||
chosenNode = menuEntries[1];
|
||||
else if (privacy == "PRIVATE")
|
||||
chosenNode = menuEntries[2];
|
||||
else
|
||||
chosenNode = menuEntries[0];
|
||||
privacyMenu.chosenNode = chosenNode;
|
||||
$(chosenNode).addClassName("_chosen");
|
||||
}
|
||||
var privacyMenu = $("privacy-menu").childNodesWithTag("ul")[0];
|
||||
var menuEntries = $(privacyMenu).childNodesWithTag("li");
|
||||
var chosenNode;
|
||||
if (privacy == "CONFIDENTIAL")
|
||||
chosenNode = menuEntries[1];
|
||||
else if (privacy == "PRIVATE")
|
||||
chosenNode = menuEntries[2];
|
||||
else
|
||||
chosenNode = menuEntries[0];
|
||||
privacyMenu.chosenNode = chosenNode;
|
||||
$(chosenNode).addClassName("_chosen");
|
||||
}
|
||||
|
||||
function onComponentEditorLoad(event) {
|
||||
|
||||
Reference in New Issue
Block a user