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:48 +0200 |
commit | fb2f066370d1ef30ff6d68ab3f20c17f861a5286 (patch) | |
tree | 28e92945b019b5f835b826d098e103f2b26cad27 /skins/larry | |
parent | af98eb046f28e5cf100293dc7b037dc69f7d6333 (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 76485c11e..4485a21f8 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -244,8 +244,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); |