From d0f616c6e04560a2f6a90b39b3d1d4391b327c74 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 28 Apr 2013 04:09:19 -0400
Subject: [PATCH] Fix messages list focus issue in Internet Explorer (#1489058)

---
 program/js/list.js |    3 ++-
 CHANGELOG          |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 5234436..50b6a2d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Fix messages list focus issue in Internet Explorer (#1489058)
 - Add db_prefix configuration option in place of db_table_*/db_sequence_* options
 - Make possible to use db_prefix for schema initialization in Installer (#1489067)
 - Fix updatedb.sh script so it recognizes also table prefix for external DDL files
diff --git a/program/js/list.js b/program/js/list.js
index a5f1c3f..c6b0d3f 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -231,7 +231,8 @@
 
   // Un-focus already focused elements (#1487123, #1487316, #1488600, #1488620)
   $(':focus:not(body)').blur();
-  $('iframe').each(function() { this.blur(); });
+  // un-focus iframe bodies (#1489058), this doesn't work in Opera and Chrome
+  $('iframe').contents().find('body').blur();
 
   if (e || (e = window.event))
     rcube_event.cancel(e);

--
Gitblit v1.9.1