Monotone-Parent: f74baefe5e3f0349c95467a779b6791335eb0e19

Monotone-Revision: 30ec73924173f30cac8edaa24abb0d6e6dfdeac1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-27T16:29:57
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-11-27 16:29:57 +00:00
parent 3a5eaf6c2f
commit 348af28568
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -256,7 +256,7 @@ function onTextFocus() {
}
if (signatureLength > 0) {
var length = this.getValue().length - signatureLength - 1;
this.selectText(length, length);
this.setCaretTo(length);
}
Event.stopObserving(this, "focus", onTextFocus);
}
@@ -282,8 +282,8 @@ function initMailEditor() {
var sigLimit = textContent.lastIndexOf("--");
if (sigLimit > -1)
signatureLength = (textContent.length - sigLimit);
textarea.scrollTop = textarea.scrollHeight;
textarea.observe("focus", onTextFocus);
textarea.scrollTop = textarea.offsetHeight;
onWindowResize(null);
Event.observe(window, "resize", onWindowResize);