Changeset cf1f0f9 in github


Ignore:
Timestamp:
Feb 5, 2008 4:39:08 PM (5 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
a02d486
Parents:
a527781
Message:

Applied patch for updating page title (#1484727, #1484650)

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r0ea88409 rcf1f0f9  
    22--------------------------- 
    33 
    4 2008/02/04 (thomasb) 
     42008/02/05 (thomasb) 
    55---------- 
    66- Fix regular expression for checking e-mail address (#1484710) 
    77- Make sending of read receipts configurable 
     8- Respect config when localize folder names (#1484707) 
     9- Aplied patch for updating page title (#1484727, #1484650) 
    810 
    9112008/02/02 (thomasb) 
  • program/include/rcmail_template.inc

    rfba1f5a rcf1f0f9  
    313313      $out .= ($this->ajax_call ? 'this' : JS_OBJECT_NAME) . '.set_env('.json_serialize($this->js_env).");\n"; 
    314314     
     315    // add command to set page title 
     316    if ($this->ajax_call && !empty($this->pagetitle)) 
     317      $out .= sprintf( 
     318        "this.set_pagetitle('%s');\n", 
     319        JQ((!empty($this->config['product_name']) ? $this->config['product_name'].' :: ' : '') . $this->pagetitle) 
     320      ); 
     321 
    315322    foreach ($this->js_commands as $i => $args) 
    316323    { 
     
    327334    } 
    328335     
    329     // add command to set page title 
    330     if ($this->ajax_call && !empty($this->pagetitle)) 
    331       $out .= sprintf( 
    332         "this.set_pagetitle('%s');\n", 
    333         JQ((!empty($this->config['product_name']) ? $this->config['product_name'].' :: ' : '') . $this->pagetitle) 
    334       ); 
     336 
    335337     
    336338    return $out; 
  • program/steps/mail/check_recent.inc

    r1107480 rcf1f0f9  
    3636 
    3737      $OUTPUT->set_env('messagecount', $IMAP->messagecount()); 
    38       $OUTPUT->command('set_unread_count', $mbox_name, $unread_count, true); 
     38      $OUTPUT->command('set_unread_count', $mbox_name, $unread_count, ($mbox_name == 'INBOX')); 
    3939      $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text()); 
    4040      $OUTPUT->command('set_quota', $IMAP->get_quota()); 
  • program/steps/mail/getunread.inc

    r5349b78 rcf1f0f9  
    2525{ 
    2626  foreach ($a_folders as $mbox_row) 
    27     $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN')); 
     27    $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN'), ($IMAP->get_mailbox_name() == 'INBOX' && $mbox_row == 'INBOX')); 
    2828} 
    2929 
  • program/steps/mail/list.inc

    r1107480 rcf1f0f9  
    5353$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count)); 
    5454 
    55 // update mailboxlist 
    56 $OUTPUT->command('set_unread_count', $mbox_name, $unseen); 
    57  
    5855 
    5956// add message rows 
     
    6360  $OUTPUT->show_message('nomessagesfound', 'notice'); 
    6461   
     62// update mailboxlist 
     63$OUTPUT->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX')); 
     64 
    6565// send response 
    6666$OUTPUT->send(); 
  • program/steps/mail/mark.inc

    r8d07583 rcf1f0f9  
    3333  { 
    3434    $mbox_name = $IMAP->get_mailbox_name(); 
    35     $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN')); 
     35    $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'), ($mbox_name == 'INBOX')); 
    3636    $OUTPUT->send(); 
    3737  } 
  • program/steps/mail/move_del.inc

    r1107480 rcf1f0f9  
    8787// update mailboxlist 
    8888$mbox = $IMAP->get_mailbox_name(); 
    89 $OUTPUT->command('set_unread_count', $mbox, $IMAP->messagecount($mbox, 'UNSEEN')); 
     89$OUTPUT->command('set_unread_count', $mbox, $IMAP->messagecount($mbox, 'UNSEEN'), ($mbox == 'INBOX')); 
    9090 
    9191if ($_action=='moveto' && $target) 
Note: See TracChangeset for help on using the changeset viewer.