From d30007a4d0cb8cf2cd03cc7f740a6f976e1c40ff Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 30 Jun 2008 20:05:48 +0000 Subject: [PATCH 1/3] Monotone-Parent: 46d1c12eedb8177f788cf76fdb4e73b766c27617 Monotone-Revision: 22f95e63e1a97e2d86b84a031f18f81f1020db88 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-06-30T20:05:48 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/UIxMailEditor.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/UI/WebServerResources/UIxMailEditor.js b/UI/WebServerResources/UIxMailEditor.js index ac57bf05f..9c9152f4a 100644 --- a/UI/WebServerResources/UIxMailEditor.js +++ b/UI/WebServerResources/UIxMailEditor.js @@ -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); From e91d5e63a31067b19e0a0a10409136bb9cf2a72c Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 30 Jun 2008 20:34:51 +0000 Subject: [PATCH 2/3] Monotone-Parent: 22f95e63e1a97e2d86b84a031f18f81f1020db88 Monotone-Revision: a9e348832ad8000c19b9f01be30bd0b6ac2cad46 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-06-30T20:34:51 Monotone-Branch: ca.inverse.sogo --- NEWS | 1 + UI/WebServerResources/UIxComponentEditor.js | 27 +++++++++------------ 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/NEWS b/NEWS index 1e64ec2ff..bd15a00ea 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ 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 0.9.0-20080520 (1.0 rc6) ------------------------ diff --git a/UI/WebServerResources/UIxComponentEditor.js b/UI/WebServerResources/UIxComponentEditor.js index 9cc02b2ce..c50562371 100644 --- a/UI/WebServerResources/UIxComponentEditor.js +++ b/UI/WebServerResources/UIxComponentEditor.js @@ -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) { From 40ec0cc96e486e518341680a2a36a4c672877898 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 30 Jun 2008 20:35:48 +0000 Subject: [PATCH 3/3] Monotone-Parent: a9e348832ad8000c19b9f01be30bd0b6ac2cad46 Monotone-Revision: f8fd2d73c8df37a6753528c62bb5d7eb27f1e811 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-06-30T20:35:48 Monotone-Branch: ca.inverse.sogo --- NEWS | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS b/NEWS index bd15a00ea..dc10533f5 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ -------------------- - 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) ------------------------