merge of '602ce15244a3cf50b41b2c16feb1c88a2d9bcc37'

and 'f8fd2d73c8df37a6753528c62bb5d7eb27f1e811'

Monotone-Parent: 602ce15244a3cf50b41b2c16feb1c88a2d9bcc37
Monotone-Parent: f8fd2d73c8df37a6753528c62bb5d7eb27f1e811
Monotone-Revision: b38c37cda11815cc245586cfe099f39cb10261f2

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-06-30T20:36:23
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-06-30 20:36:23 +00:00
3 changed files with 27 additions and 15 deletions

2
NEWS
View File

@@ -1,6 +1,8 @@
0.9.0-2008XXXX (1.0)
--------------------
- work around the situation where Courier IMAP would refuse to rename the current mailbox or move it into the trash
- fixed tab index in mail composition window
- fixed default privacy selection for new events
0.9.0-20080520 (1.0 rc6)
------------------------

View File

@@ -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) {

View File

@@ -285,6 +285,17 @@ function onTextMouseDown(event) {
}
}
function initTabIndex(addressList, subjectField, msgArea) {
var i = 1;
addressList.select("input.textField").each(function (input) {
if (!input.readAttribute("readonly"))
input.writeAttribute("tabindex", i++);
});
subjectField.writeAttribute("tabindex", i++);
msgArea.writeAttribute("tabindex", i);
}
function initMailEditor() {
var list = $("attachments");
$(list).attachMenu("attachmentsMenu");
@@ -310,7 +321,9 @@ function initMailEditor() {
// textarea.observe("contextmenu", onTextContextMenu);
textarea.observe("mousedown", onTextMouseDown, true);
initTabIndex(list, $$("div#subjectRow input").first(), textarea);
onWindowResize(null);
Event.observe(window, "resize", onWindowResize);
Event.observe(window, "beforeunload", onMailEditorClose);