summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-04 11:07:27 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-04 11:07:27 +0200
commit9e9dcc34bc32d5f0f382751245fdfa77d4a93a6a (patch)
treec7d4fcd4822867c3e476576dd0f761b233013336 /program/js
parent44cfef0927614f3bc48ab3376791aecd31fc90d9 (diff)
Fix frame check and strange "parent is undefined" issue
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index ca65176d9..8ac5ca2e9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -5989,8 +5989,10 @@ function rcube_webmail()
this.replace_folder_row = function(oldid, id, name, display_name, is_protected, class_name)
{
if (!this.gui_objects.subscriptionlist) {
- if (this.is_framed)
- return parent.rcmail.replace_folder_row(oldid, id, name, display_name, is_protected, class_name);
+ if (this.is_framed()) {
+ // @FIXME: for some reason this 'parent' variable need to be prefixed with 'window.'
+ return window.parent.rcmail.replace_folder_row(oldid, id, name, display_name, is_protected, class_name);
+ }
return false;
}