diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-09-02 17:06:37 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-09-02 17:06:37 +0000 |
| commit | b8ad3ee86670846ba3b8e2be967e2e8935e79f2f (patch) | |
| tree | 715d7f49897fa1170a7cbe3266277ce5ec07e33b /roundcubemail/program/js/editor.js | |
| parent | 7c2d505b63556fa18201899816d2d5b55f7bf4c9 (diff) | |
- Fix JS error in IE (can't move focus to the control...) (#1486972)
git-svn-id: https://svn.roundcube.net/trunk@3935 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/editor.js')
| -rw-r--r-- | roundcubemail/program/js/editor.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/roundcubemail/program/js/editor.js b/roundcubemail/program/js/editor.js index 48d8cfa88..455558233 100644 --- a/roundcubemail/program/js/editor.js +++ b/roundcubemail/program/js/editor.js @@ -62,13 +62,14 @@ function rcmail_editor_init(skin_path, editor_lang, spellcheck, mode) } // react to real individual tinyMCE editor init -function rcmail_editor_callback(editor) +function rcmail_editor_callback() { - var editor, elem = rcube_find_object('_from'); + var elem = rcube_find_object('_from'); if (elem && elem.type=='select-one') { rcmail.change_identity(elem); // Focus previously focused element - rcmail.env.compose_focus_elem.focus(); + if (rcmail.env.compose_focus_elem.id != rcmail.env.composebody) + 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); |
