mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-11 09:51:23 +00:00
Fix for bug #3053
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user