diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-06-30 09:48:06 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-06-30 09:52:12 +0200 |
commit | 358b0f8bbc99b83ce3660374d866a0d3a485fa69 (patch) | |
tree | fd1d0dac0db6d06c1a2dd3e8eb28856aea22f7da /program | |
parent | cc57dad1cd7568fc0a7968d419d4dc1258eecb53 (diff) |
Fix wrong compose screen elements focus in IE9 (#1488541)
Conflicts:
CHANGELOG
Diffstat (limited to 'program')
-rw-r--r-- | program/js/editor.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/program/js/editor.js b/program/js/editor.js index 63186fb02..f341ccb80 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -70,8 +70,11 @@ function rcmail_editor_callback() rcmail.change_identity(elem); // Focus previously focused element if (fe && fe.id != rcmail.env.composebody) { - window.focus(); // for WebKit (#1486674) - fe.focus(); + // use setTimeout() for IE9 (#1488541) + window.setTimeout(function() { + window.focus(); // for WebKit (#1486674) + fe.focus(); + }, 10); } } |