summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-12-07 09:47:47 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-12-07 09:47:47 +0000
commit4e9ebeba7e0164fa7de5e050cade3600bcddd214 (patch)
tree4eff00e99888e1ff872843a673c1d58c03038eef /roundcubemail/program/js/app.js
parent8ab174a7592b76213effeda4c5653c2061a10da2 (diff)
- Fix empty line before the signature in IE (#1485351)
git-svn-id: https://svn.roundcube.net/trunk@2130 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js12
1 files changed, 8 insertions, 4 deletions
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);
}