thomascube
2006-02-19 181798f913b5e4c58b67f78801819638c960ab06
program/js/app.js
@@ -231,7 +231,7 @@
    this.enable_command('logout', true);
    // disable browser's contextmenus
    //document.oncontextmenu = function(){ return false; }
    document.oncontextmenu = function(){ return false; }
    // load body click event
    document.onmousedown = function(){ return rcube_webmail_client.reset_click(); };
@@ -2645,13 +2645,20 @@
    this.set_page_buttons();
    };
  // replace content of quota display
   this.set_quota = function(text)
     {
     if (this.gui_objects.quotadisplay)
       this.gui_objects.quotadisplay.innerHTML = text;
     };
  // update the mailboxlist
  this.set_unread_count = function(mbox, count, set_title)
    {
    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);
@@ -2674,7 +2681,7 @@
      }
    // set unread count to window title
    if (set_title && document.title)
    if ((set_title || mbox==this.env.mailbox) && document.title)
      {
      var doc_title = String(document.title);
      reg = /^\([0-9]+\)\s+/i;