diff options
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/CHANGELOG | 1 | ||||
| -rw-r--r-- | roundcubemail/program/js/app.js | 12 |
2 files changed, 9 insertions, 4 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index b0d3e127f..808134e08 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -5,6 +5,7 @@ CHANGELOG RoundCube Webmail ---------- - Fix sorting of folders with more than 2 levels (#1485569) - Fix search results page jumps in LDAP addressbook (#1485253) +- Fix empty line before the signature in IE (#1485351) 2008/12/04 (alec) ---------- diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 0634f1927..22d2b47f1 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -2144,14 +2144,18 @@ function rcube_webmail() if (this.env.signatures) { // Append the signature as a div within the body - var sigElem = editor.dom.get("_rc_sig"); + var sigElem = editor.dom.get('_rc_sig'); var newsig = ''; var htmlsig = true; - + if (!sigElem) { - sigElem = editor.getDoc().createElement("div"); - sigElem.setAttribute("id", "_rc_sig"); + // add empty line before signature on IE + if (bw.ie) + editor.getBody().appendChild(editor.getDoc().createElement('br')); + + sigElem = editor.getDoc().createElement('div'); + sigElem.setAttribute('id', '_rc_sig'); editor.getBody().appendChild(sigElem); } |
