thomascube
2006-03-04 01c86f2e7c9eb4f2dff6d670ea8f36c431b9b476
program/js/app.js
@@ -265,7 +265,6 @@
    this.in_message_list = true;
    e.cancelBubble = true;
    if (e.stopPropagation) e.stopPropagation();
    };
  // reset last clicked if user clicks on anything other than the message table
@@ -293,7 +292,7 @@
      }
      if (!new_row) return false;
      scroll_to = new_row.offsetTop;
    } else {return false};
    } else {return true;}
   
   if (mod_key != CONTROL_KEY)
     this.select_row(new_row.uid,mod_key);
@@ -2658,7 +2657,7 @@
    {
    if (!this.gui_objects.mailboxlist)
      return false;
    var item, reg, text_obj;
    mbox = String(mbox).toLowerCase().replace(this.mbox_expression, '');
    item = document.getElementById('rcmbx'+mbox);
@@ -2681,10 +2680,10 @@
      }
    // set unread count to window title
    if ((set_title || mbox==this.env.mailbox) && document.title)
    reg = /^\([0-9]+\)\s+/i;
    if (set_title && count && document.title)
      {
      var doc_title = String(document.title);
      reg = /^\([0-9]+\)\s+/i;
      if (count && doc_title.match(reg))
        document.title = doc_title.replace(reg, '('+count+') ');
@@ -2693,6 +2692,11 @@
      else
        document.title = doc_title.replace(reg, '');
      }
    // remove unread count from window title
    else if (document.title)
      {
      document.title = document.title.replace(reg, '');
      }
    };