summaryrefslogtreecommitdiff
path: root/skins/default
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-07-30 15:36:20 +0000
committeralecpl <alec@alec.pl>2010-07-30 15:36:20 +0000
commit851b2a98111ee3b3f2b7d28b3e0e9c325d2504b0 (patch)
tree1771e7827a17970fcb97c5f89843494830caf0ca /skins/default
parent2537686d1dc06c7b0588bc4663342a052ebaca6e (diff)
- Fix js errors when using Roundcube inside an iframe (#1486862)
Diffstat (limited to 'skins/default')
-rw-r--r--skins/default/functions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/skins/default/functions.js b/skins/default/functions.js
index b39324ef9..a42c47d2b 100644
--- a/skins/default/functions.js
+++ b/skins/default/functions.js
@@ -426,7 +426,7 @@ function rcube_init_mail_ui()
rcube_event.add_listener({ object:rcmail_ui, method:'body_keypress', event:'keypress' });
$('iframe').load(iframe_events)
- .contents().mouseup(function(e){parent.rcmail_ui.body_mouseup(e)});
+ .contents().mouseup(function(e){rcmail_ui.body_mouseup(e)});
if (rcmail.env.task == 'mail') {
rcmail.addEventListener('menu-open', 'open_listmenu', rcmail_ui);
@@ -445,6 +445,6 @@ function iframe_events()
{
// this==iframe
var doc = this.contentDocument ? this.contentDocument : this.contentWindow ? this.contentWindow.document : null;
- parent.rcube_event.add_listener({ element: doc, object:rcmail_ui, method:'body_mouseup', event:'mouseup' });
+ rcube_event.add_listener({ element: doc, object:rcmail_ui, method:'body_mouseup', event:'mouseup' });
}