From cfc762c0f6cb9ad06d22aee4ab674859b808697b Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 30 Jul 2010 15:36:20 +0000 Subject: - Fix js errors when using Roundcube inside an iframe (#1486862) git-svn-id: https://svn.roundcube.net/trunk@3844 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/skins/default/functions.js | 4 ++-- 1 file 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' }); } -- cgit v1.2.3