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

trac at roundcube.net trac at roundcube.net
Sat Oct 24 15:31:50 CEST 2009


Author: alec
Date: 2009-10-24 08:31:49 -0500 (Sat, 24 Oct 2009)
New Revision: 3056

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- don't call focus() on html editor (#1486238)


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2009-10-23 18:11:41 UTC (rev 3055)
+++ trunk/roundcubemail/program/js/app.js	2009-10-24 13:31:49 UTC (rev 3056)
@@ -466,6 +466,7 @@
     var input_to = $("[name='_to']");
     var input_subject = $("input[name='_subject']");
     var input_message = $("[name='_message']").get(0);
+    var html_mode = $("input[name='_is_html']").val() == '1';
 
     // init live search events
     this.init_address_input_events(input_to);
@@ -474,7 +475,7 @@
 
     // add signature according to selected identity
     if (input_from.attr('type') == 'select-one' && $("input[name='_draft_saveid']").val() == ''
-        && $("input[name='_is_html']").val() != '1') {  // if we have HTML editor, signature is added in callback
+        && !html_mode) {  // if we have HTML editor, signature is added in callback
       this.change_identity(input_from[0]);
     }
 
@@ -482,7 +483,7 @@
       input_to.focus();
     else if (input_subject.val() == '')
       input_subject.focus();
-    else if (input_message)
+    else if (input_message && !html_mode)
       input_message.focus();
 
     // get summary of all field values

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



More information about the Svn mailing list