diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-29 06:49:29 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-29 06:49:29 +0000 |
| commit | 57e5335d85f189ebf61617160b73eb103bce989f (patch) | |
| tree | f0e1df07c467f04553fe9e55bb333ef399544689 /roundcubemail/program/js | |
| parent | 5a2e86a82a68ca9af65fe962a7975b4de10db8bd (diff) | |
- fixed html signatures replacement in text mode
git-svn-id: https://svn.roundcube.net/trunk@1693 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 0e5aa0183..3c5a11d74 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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); |
