mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-18 13:05:57 +00:00
Monotone-Parent: e0a110c700ace37c521b69b4fc25af7050fc415b
Monotone-Revision: f36334509c4664853d23a261e33fef626136abcf Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-04-29T20:58:35 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -261,11 +261,11 @@ function onTextFocus() {
|
||||
function onTextFirstFocus() {
|
||||
var content = this.getValue();
|
||||
if (content.lastIndexOf("--") == 0) {
|
||||
this.insertBefore(document.createTextNode("\r\n"),
|
||||
this.insertBefore(document.createTextNode("\r"),
|
||||
this.lastChild);
|
||||
}
|
||||
if (signatureLength > 0) {
|
||||
var length = this.getValue().length - signatureLength - 1;
|
||||
var length = this.getValue().length - signatureLength - 2;
|
||||
this.setCaretTo(length);
|
||||
}
|
||||
Event.stopObserving(this, "focus", onTextFirstFocus);
|
||||
|
||||
Reference in New Issue
Block a user