Applied patch for updating page title (#1484727, #1484650)
| | |
| | | CHANGELOG RoundCube Webmail |
| | | --------------------------- |
| | | |
| | | 2008/02/04 (thomasb) |
| | | 2008/02/05 (thomasb) |
| | | ---------- |
| | | - Fix regular expression for checking e-mail address (#1484710) |
| | | - Make sending of read receipts configurable |
| | | - Respect config when localize folder names (#1484707) |
| | | - Aplied patch for updating page title (#1484727, #1484650) |
| | | |
| | | 2008/02/02 (thomasb) |
| | | ---------- |
| | |
| | | if (!$this->framed && !empty($this->js_env)) |
| | | $out .= ($this->ajax_call ? 'this' : JS_OBJECT_NAME) . '.set_env('.json_serialize($this->js_env).");\n"; |
| | | |
| | | // add command to set page title |
| | | if ($this->ajax_call && !empty($this->pagetitle)) |
| | | $out .= sprintf( |
| | | "this.set_pagetitle('%s');\n", |
| | | JQ((!empty($this->config['product_name']) ? $this->config['product_name'].' :: ' : '') . $this->pagetitle) |
| | | ); |
| | | |
| | | foreach ($this->js_commands as $i => $args) |
| | | { |
| | | $method = array_shift($args); |
| | |
| | | join(',', $args)); |
| | | } |
| | | |
| | | // add command to set page title |
| | | if ($this->ajax_call && !empty($this->pagetitle)) |
| | | $out .= sprintf( |
| | | "this.set_pagetitle('%s');\n", |
| | | JQ((!empty($this->config['product_name']) ? $this->config['product_name'].' :: ' : '') . $this->pagetitle) |
| | | ); |
| | | |
| | | |
| | | return $out; |
| | | } |
| | |
| | | $unread_count = $IMAP->messagecount(NULL, 'UNSEEN', TRUE); |
| | | |
| | | $OUTPUT->set_env('messagecount', $IMAP->messagecount()); |
| | | $OUTPUT->command('set_unread_count', $mbox_name, $unread_count, true); |
| | | $OUTPUT->command('set_unread_count', $mbox_name, $unread_count, ($mbox_name == 'INBOX')); |
| | | $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text()); |
| | | $OUTPUT->command('set_quota', $IMAP->get_quota()); |
| | | |
| | |
| | | if (!empty($a_folders)) |
| | | { |
| | | foreach ($a_folders as $mbox_row) |
| | | $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN')); |
| | | $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN'), ($IMAP->get_mailbox_name() == 'INBOX' && $mbox_row == 'INBOX')); |
| | | } |
| | | |
| | | $OUTPUT->send(); |
| | |
| | | $OUTPUT->set_env('pagecount', $pages); |
| | | $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count)); |
| | | |
| | | // update mailboxlist |
| | | $OUTPUT->command('set_unread_count', $mbox_name, $unseen); |
| | | |
| | | |
| | | // add message rows |
| | | if (isset($a_headers) && count($a_headers)) |
| | |
| | | else |
| | | $OUTPUT->show_message('nomessagesfound', 'notice'); |
| | | |
| | | // update mailboxlist |
| | | $OUTPUT->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX')); |
| | | |
| | | // send response |
| | | $OUTPUT->send(); |
| | | |
| | |
| | | if ($marked != -1) |
| | | { |
| | | $mbox_name = $IMAP->get_mailbox_name(); |
| | | $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN')); |
| | | $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'), ($mbox_name == 'INBOX')); |
| | | $OUTPUT->send(); |
| | | } |
| | | } |
| | |
| | | |
| | | // update mailboxlist |
| | | $mbox = $IMAP->get_mailbox_name(); |
| | | $OUTPUT->command('set_unread_count', $mbox, $IMAP->messagecount($mbox, 'UNSEEN')); |
| | | $OUTPUT->command('set_unread_count', $mbox, $IMAP->messagecount($mbox, 'UNSEEN'), ($mbox == 'INBOX')); |
| | | |
| | | if ($_action=='moveto' && $target) |
| | | $OUTPUT->command('set_unread_count', $target, $IMAP->messagecount($target, 'UNSEEN')); |