summaryrefslogtreecommitdiff
path: root/program/js/editor.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:50:47 +0200
commitde967747341ea66f42ac8e36538fe74c1fe696b6 (patch)
tree01e501347a3127f64ef95698cefd180e491d5a78 /program/js/editor.js
parentfc84ca1f0cd4684697adecb406fcb5c347d91807 (diff)
Fix wrong compose screen elements focus in IE9 (#1488541)
Diffstat (limited to 'program/js/editor.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 a442282e7..963b1ce19 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -86,8 +86,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);
}
}