alecpl
2010-08-30 5ac188f0a7e006cb30ffaf039e5326739c5463bd
- Fix hide_message() to work when called from an iframe


1 files modified
12 ■■■■ changed files
program/js/app.js 12 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -4516,9 +4516,15 @@
  // make a message row disapear
  this.hide_message = function(fade)
  {
    if (this.gui_objects.message) {
      $(this.gui_objects.message).unbind()[(fade?'fadeOut':'hide')]();
      this.gui_objects.message.__type = null;
    var msg;
    if (this.gui_objects.message)
      msg = this.gui_objects.message;
    else if (this.env.framed && parent.rcmail)
      msg = parent.rcmail.gui_objects.message;
    if (msg) {
      $(msg).unbind()[(fade?'fadeOut':'hide')]();
      msg.__type = null;
    }
  };