Added template object for current mailbox name (#1485256)
| | |
| | | CHANGELOG RoundCube Webmail |
| | | --------------------------- |
| | | |
| | | 2008/08/14 (thomasb) |
| | | ---------- |
| | | - Use current mailbox name in template (#1485256) |
| | | - Better fix for skipping untagged responses (#1485261) |
| | | |
| | | 2008/08/09 (alec) |
| | | ---------- |
| | | - Case insensitive contacts searching using PostgreSQL (#1485259) |
| | |
| | | }; |
| | | |
| | | |
| | | // replace content of mailboxname display |
| | | this.set_mailboxname = function(content) |
| | | { |
| | | if (this.gui_objects.mailboxname && content) |
| | | this.gui_objects.mailboxname.innerHTML = content; |
| | | }; |
| | | |
| | | // replace content of quota display |
| | | this.set_quota = function(content) |
| | | { |
| | |
| | | return Q($out); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | function rcmail_mailbox_name_display($attrib) |
| | | { |
| | | global $RCMAIL; |
| | | |
| | | if (!$attrib['id']) |
| | | $attrib['id'] = 'rcmmailboxname'; |
| | | |
| | | $RCMAIL->output->add_gui_object('mailboxname', $attrib['id']); |
| | | |
| | | return html::span($attrib, rcmail_get_mailbox_name_text()); |
| | | } |
| | | |
| | | function rcmail_get_mailbox_name_text() |
| | | { |
| | | global $RCMAIL; |
| | | return rcmail_localize_foldername($RCMAIL->imap->get_mailbox_name()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Convert the given message part to proper HTML |
| | |
| | | 'messages' => 'rcmail_message_list', |
| | | 'messagecountdisplay' => 'rcmail_messagecount_display', |
| | | 'quotadisplay' => 'rcmail_quota_display', |
| | | 'mailboxname' => 'rcmail_mailbox_name_display', |
| | | 'messageheaders' => 'rcmail_message_headers', |
| | | 'messagebody' => 'rcmail_message_body', |
| | | 'messagecontentframe' => 'rcmail_messagecontent_frame', |
| | |
| | | $OUTPUT->set_env('messagecount', $count); |
| | | $OUTPUT->set_env('pagecount', $pages); |
| | | $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count)); |
| | | $OUTPUT->command('set_mailboxname', rcmail_get_mailbox_name_text()); |
| | | |
| | | |
| | | |
| | | // add message rows |
| | |
| | | |
| | | $OUTPUT->add_handlers(array( |
| | | 'messageattachments' => 'rcmail_message_attachments', |
| | | 'mailboxname' => 'rcmail_mailbox_name_display', |
| | | 'blockedobjects' => 'rcmail_remote_objects_msg')); |
| | | |
| | | |