[Svn] r2130 - in trunk/roundcubemail: . program/js

trac at roundcube.net trac at roundcube.net
Sun Dec 7 10:47:47 CET 2008


Author: alec
Date: 2008-12-07 03:47:47 -0600 (Sun, 07 Dec 2008)
New Revision: 2130

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/js/app.js
Log:
- Fix empty line before the signature in IE (#1485351)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2008-12-07 09:17:21 UTC (rev 2129)
+++ trunk/roundcubemail/CHANGELOG	2008-12-07 09:47:47 UTC (rev 2130)
@@ -5,6 +5,7 @@
 ----------
 - 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)
 ----------

Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2008-12-07 09:17:21 UTC (rev 2129)
+++ trunk/roundcubemail/program/js/app.js	2008-12-07 09:47:47 UTC (rev 2130)
@@ -2144,14 +2144,18 @@
       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);
           }
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list