summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-06-30 09:48:06 +0200
committerAleksander Machniak <alec@alec.pl>2012-06-30 09:48:06 +0200
commitad9dac529e37fc76d46d76cf3cff336598843826 (patch)
tree255b30721e58f3a3b9b886fae2ffdbad1926fe26 /program/js
parent8ba01c077b12949f747963ef4739c4cfd55540e8 (diff)
Fix wrong compose screen elements focus in IE9 (#1488541)
Diffstat (limited to 'program/js')
-rw-r--r--program/js/editor.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index 702ca1cd4..87ea1937f 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -84,8 +84,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);
}
}