[Svn] r3934 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Thu Sep 2 14:30:13 CEST 2010


Author: alec
Date: 2010-09-02 07:30:13 -0500 (Thu, 02 Sep 2010)
New Revision: 3934

Modified:
   trunk/roundcubemail/program/js/editor.js
Log:
- Fix JS error when switching off HTML editor in identity form


Modified: trunk/roundcubemail/program/js/editor.js
===================================================================
--- trunk/roundcubemail/program/js/editor.js	2010-09-02 10:51:23 UTC (rev 3933)
+++ trunk/roundcubemail/program/js/editor.js	2010-09-02 12:30:13 UTC (rev 3934)
@@ -116,6 +116,7 @@
     if (flagElement && (flag = rcube_find_object(flagElement)))
       flag.value = '0';
 
-    rcube_find_object(rcmail.env.composebody).focus();
+    if (rcmail.env.composebody)
+      rcube_find_object(rcmail.env.composebody).focus();
   }
 }

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



More information about the Svn mailing list