Aleksander Machniak
2014-08-04 9e9dcc34bc32d5f0f382751245fdfa77d4a93a6a
Fix frame check and strange "parent is undefined" issue
1 files modified
6 ■■■■■ changed files
program/js/app.js 6 ●●●●● patch | view | raw | blame | history
program/js/app.js
@@ -5989,8 +5989,10 @@
  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;
    }