Monotone-Parent: 9376aa4657e9b844da0fae6b7a6d6b2d4245426d
Monotone-Revision: 04e28af0435c8c97a56e36c8f4f1110b3c578d39

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-10-29T19:23:31
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-10-29 19:23:31 +00:00
parent 2730cad6ab
commit d71300529e
5 changed files with 56 additions and 38 deletions

View File

@@ -312,16 +312,9 @@ function onTextIEUpdateCursorPos(event) {
function onTextFirstFocus() {
var content = this.getValue();
var signaturePlacement = userDefaults["SignaturePlacement"];
if ( typeof(signaturePlacement) == "undefined" ) {
signaturePlacement = "below";
}
var replyPlacement = userDefaults["ReplyPlacement"];
if ( typeof(replyPlacement) == "undefined" ) {
replyPlacement = signaturePlacement;
}
if ( replyPlacement == "above" ) {
if (replyPlacement == "above") {
this.insertBefore(document.createTextNode("\r\r"), this.lastChild);
this.setCaretTo(0);
}
@@ -554,7 +547,7 @@ function initMailEditor() {
if (sigLimit > -1)
MailEditor.signatureLength = (textContent.length - sigLimit);
}
if ( userDefaults["ReplyPlacement"] != "above" ) {
if (userDefaults["ReplyPlacement"] != "above") {
textarea.scrollTop = textarea.scrollHeight;
}
textarea.observe("focus", onTextFirstFocus);