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

trac at roundcube.net trac at roundcube.net
Fri Aug 27 15:30:54 CEST 2010


Author: alec
Date: 2010-08-27 08:30:54 -0500 (Fri, 27 Aug 2010)
New Revision: 3912

Modified:
   trunk/roundcubemail/program/js/editor.js
Log:
- Fix focus position after initial signature change in html editor


Modified: trunk/roundcubemail/program/js/editor.js
===================================================================
--- trunk/roundcubemail/program/js/editor.js	2010-08-27 12:26:00 UTC (rev 3911)
+++ trunk/roundcubemail/program/js/editor.js	2010-08-27 13:30:54 UTC (rev 3912)
@@ -54,8 +54,8 @@
       spellchecker_languages : (rcmail.env.spellcheck_langs ? rcmail.env.spellcheck_langs : 'Dansk=da,Deutsch=de,+English=en,Espanol=es,Francais=fr,Italiano=it,Nederlands=nl,Polski=pl,Portugues=pt,Suomi=fi,Svenska=sv'),
       spellchecker_rpc_url : '?_task=utils&_action=spell&tiny=1',
       gecko_spellcheck : true,
+      remove_script_host : false,
       relative_urls : false,
-      remove_script_host : false,
       rc_client : rcmail,
       oninit : 'rcmail_editor_callback'
     });
@@ -65,8 +65,11 @@
 function rcmail_editor_callback(editor)
 {
   var editor, elem = rcube_find_object('_from');
-  if (elem && elem.type=='select-one')
+  if (elem && elem.type=='select-one') {
     rcmail.change_identity(elem);
+    // Focus previously focused element
+    rcmail.env.compose_focus_elem.focus();
+  }
   // set tabIndex and set focus to element that was focused before
   rcmail_editor_tabindex(rcmail.env.compose_focus_elem && rcmail.env.compose_focus_elem.id == rcmail.env.composebody);
   // Trigger resize (needed for proper editor resizing in some browsers using default skin)

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



More information about the Svn mailing list