From ad9dac529e37fc76d46d76cf3cff336598843826 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sat, 30 Jun 2012 03:48:06 -0400
Subject: [PATCH] Fix wrong compose screen elements focus in IE9 (#1488541)
---
CHANGELOG | 1 +
program/js/editor.js | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index e7e4c22..bdc472a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
+- Fix wrong compose screen elements focus in IE9 (#1488541)
- Fix fatal error when date.timezone isn't set (#1488546)
- Update to TinyMCE 3.5.4.1
- Better icons with distinct shapes for priority columns (#1488377)
diff --git a/program/js/editor.js b/program/js/editor.js
index 702ca1c..87ea193 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -84,8 +84,11 @@
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);
}
}
--
Gitblit v1.9.1