See ChangeLog.

Monotone-Parent: aa311a74c94078a5b69b3e41fcc28b5fab3a23e0
Monotone-Revision: c4988e0379d3f99f40a98620c2c808a000bc5c58

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-10-07T20:35:14
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2011-10-07 20:35:14 +00:00
parent 8b6c41f7cb
commit 78cc8b0d10
2 changed files with 13 additions and 2 deletions
+7 -2
View File
@@ -533,7 +533,10 @@ function onMailIdentitySignatureClick(event) {
}
var identity = this.mailAccount["identities"][0];
var area = $("signature");
area.value = identity["signature"];
if (typeof(identity["signature"]) != "undefined")
area.value = identity["signature"];
else
area.value = "";
dialog.show();
$("bgDialogDiv").show();
if (!CKEDITOR.instances["signature"])
@@ -673,7 +676,9 @@ function displayAccountSignature(mailAccount) {
var identity = (mailAccount["identities"]
? mailAccount["identities"][0]
: {} );
var value = identity["signature"].stripTags().unescapeHTML().replace(/^[ \n\r]*/, "");
var value = identity["signature"];
if (value && value.length > 0)
value = value.stripTags().unescapeHTML().replace(/^[ \n\r]*/, "");
if (value && value.length > 0) {
if (value.length < 30) {
actSignatureValue = value;