summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-07-30 15:36:20 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-07-30 15:36:20 +0000
commitcfc762c0f6cb9ad06d22aee4ab674859b808697b (patch)
tree6eaae4ef247ae1d870f7d3a237d44de9565699ac /roundcubemail
parent75f59b9d14fd024dc399136a84fa6b5004c2e99f (diff)
- Fix js errors when using Roundcube inside an iframe (#1486862)
git-svn-id: https://svn.roundcube.net/trunk@3844 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/skins/default/functions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/skins/default/functions.js b/roundcubemail/skins/default/functions.js
index b39324ef9..a42c47d2b 100644
--- a/roundcubemail/skins/default/functions.js
+++ b/roundcubemail/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' });
}