summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-12-07 09:47:47 +0000
committeralecpl <alec@alec.pl>2008-12-07 09:47:47 +0000
commit55cd3743ba008be84ac4b37797ae70f4f1a9b880 (patch)
tree949feecaf83cd23b24757ba53b63a442ea09a765 /program/js/app.js
parente1de7d623d1907738aec2510582148f82e8fda8f (diff)
- Fix empty line before the signature in IE (#1485351)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 0634f1927..22d2b47f1 100644
--- a/program/js/app.js
+++ b/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);
}