summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-22 19:06:14 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-22 19:06:14 +0100
commitf38d15c700303b3d63e7ad1b06a418986ac815f9 (patch)
tree19752392eed9eb89090ce18b1b6a7c8547e2fb68 /program/js/app.js
parent39f40104f06cdcd9b8153b9fa4a32e5a7686bbb2 (diff)
Better fix for IE9 issue with document.activeElement error (#1489008)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 0f1a72448..d194b7326 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -178,6 +178,11 @@ function rcube_webmail()
parent.rcmail.env.frame_lock = null;
}
+ // Makes that reference to document.activeElement do not throw
+ // "unspecified error" in IE9 (#1489008)
+ if (this.env.framed && bw.ie)
+ document.documentElement.focus();
+
// enable general commands
this.enable_command('close', 'logout', 'mail', 'addressbook', 'settings', 'save-pref',
'compose', 'undo', 'about', 'switch-task', 'menu-open', 'menu-save', true);