thomascube
2007-07-03 b716bd92d833e2d2546b3f2de6f2c6d001dc166a
Fix status message bug #1484464 with regard to #1484353

1 files modified
17 ■■■■ changed files
program/js/app.js 17 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -2915,17 +2915,16 @@
  // display a system message
  this.display_message = function(msg, type, hold)
    {
    // pass command to parent window
    if (this.env.framed && parent.rcmail )
      return parent.rcmail.display_message(msg, type, hold);
    this.set_busy(false);
    if (!this.loaded)  // save message in order to display after page loaded
      {
      this.pending_message = new Array(msg, type);
      return true;
      }
    // pass command to parent window
    if (this.env.framed && parent.rcmail)
      return parent.rcmail.display_message(msg, type, hold);
    if (!this.gui_objects.message)
      return false;
@@ -2936,12 +2935,12 @@
    if (type)
      cont = '<div class="'+type+'">'+cont+'</div>';
    this.gui_objects.message._rcube = this;
    var _rcube = this;
    this.gui_objects.message.innerHTML = cont;
    this.gui_objects.message.style.display = 'block';
    if (type!='loading')
      this.gui_objects.message.onmousedown = function(){ this._rcube.hide_message(); return true; };
      this.gui_objects.message.onmousedown = function(){ _rcube.hide_message(); return true; };
    
    if (!hold)
      this.message_timer = setTimeout(function(){ ref.hide_message(); }, this.message_time);