mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user