diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-04-29 10:43:13 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-04-29 10:43:13 +0200 |
commit | c958452d098be0cedf39e96a1ea29b1b5f265067 (patch) | |
tree | 68e423dafbf6213c8f9eec4a3c8465283aba265e /skins/larry | |
parent | 7dcf242dd936838f0f1e6c7b46f1cc391e9e34df (diff) |
Catch possible "Permission denied" error on iframe elements in IE
Diffstat (limited to 'skins/larry')
-rw-r--r-- | skins/larry/ui.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 1c76f9108..a461b64a0 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -251,8 +251,13 @@ function rcube_mail_ui() $('iframe').load(function(e){ // this = iframe - var doc = this.contentDocument ? this.contentDocument : this.contentWindow ? this.contentWindow.document : null; - $(doc).mouseup(body_mouseup); + try { + var doc = this.contentDocument ? this.contentDocument : this.contentWindow ? this.contentWindow.document : null; + $(doc).mouseup(body_mouseup); + } + catch (e) { + // catch possible "Permission denied" error in IE + }; }) .contents().mouseup(body_mouseup); |