summaryrefslogtreecommitdiff
path: root/skins/larry/ui.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-08 08:49:57 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-08 08:49:57 +0100
commit32da69983021005567a4d8f56a2658ac2645780c (patch)
tree306a8181bdb1cdbc3394e3e8ee91b2bd417dae84 /skins/larry/ui.js
parentcf8b9fc004e67bd5f8d7b0bf7f573020bcb33804 (diff)
Fix javascript errors when working in a page opened with taget="_blank"
Diffstat (limited to 'skins/larry/ui.js')
-rw-r--r--skins/larry/ui.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 6b2a5c7d0..b787dbb8d 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -123,7 +123,8 @@ function rcube_mail_ui()
}).css('cursor', 'pointer');
// toggle compose options if opened in new window and they were visible before
- if (window.opener && opener.rcmail && opener.rcmail.env.action == 'compose' && $('#composeoptionstoggle', opener.document).hasClass('remove'))
+ var opener_rc = rcmail.opener();
+ if (opener_rc && opener_rc.env.action == 'compose' && $('#composeoptionstoggle', opener.document).hasClass('remove'))
$('#composeoptionstoggle').click();
new rcube_splitter({ id:'composesplitterv', p1:'#composeview-left', p2:'#composeview-right',