summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-08-29 06:49:29 +0000
committeralecpl <alec@alec.pl>2008-08-29 06:49:29 +0000
commit53bd8fae60e1663447efba9f44fc6b79b3a5c1de (patch)
tree421407f21648abe1a0e8635c15a3dbbe1a744162 /program/js
parent910d07e3002a9077500e09abea968fc7f2eaeb91 (diff)
- fixed html signatures replacement in text mode
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 0e5aa0183..3c5a11d74 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2034,8 +2034,12 @@ function rcube_webmail()
// remove the 'old' signature
if (this.env.identity && this.env.signatures && this.env.signatures[this.env.identity])
{
- sig = this.env.signatures[this.env.identity]['text'];
- if (sig.indexOf('-- ')!=0)
+ if (this.env.signatures[this.env.identity]['is_html'])
+ sig = this.env.signatures[this.env.identity]['plain_text'];
+ else
+ sig = this.env.signatures[this.env.identity]['text'];
+
+ if (sig.indexOf('-- ')!=0)
sig = '-- \n'+sig;
p = message.lastIndexOf(sig);