diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-22 19:06:14 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-22 19:07:20 +0100 |
commit | ad5cefeefc2dec285f9f9bb177e5bd190d0e6996 (patch) | |
tree | 24fb43f3d0c0f03c154e9e0543b5366cc103db8a /program/js/app.js | |
parent | 73f094ff3ca151e928e61cc20578310e44d455a3 (diff) |
Better fix for IE9 issue with document.activeElement error (#1489008)
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index 1d77e056e..32328358a 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', true); |