- Mark (with different color) folders with recent messages (#1486234)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Mark (with different color) folders with recent messages (#1486234) |
| | | - Fix possible infinite redirect on attachment preview (#1488199) |
| | | - Improved clickjacking protection for browsers which don't support X-Frame-Options headers |
| | | - Fixed bug where similiar folder names were highlighted wrong (#1487860) |
| | |
| | | url += '&_refresh=1'; |
| | | |
| | | this.select_folder(mbox, '', true); |
| | | this.unmark_folder(mbox, 'recent', '', true); |
| | | this.env.mailbox = mbox; |
| | | |
| | | // load message list remotely |
| | |
| | | } |
| | | }; |
| | | |
| | | // adds a class to selected folder |
| | | this.mark_folder = function(name, class_name, prefix, encode) |
| | | { |
| | | $(this.get_folder_li(name, prefix, encode)).addClass(class_name); |
| | | }; |
| | | |
| | | // adds a class to selected folder |
| | | this.unmark_folder = function(name, class_name, prefix, encode) |
| | | { |
| | | $(this.get_folder_li(name, prefix, encode)).removeClass(class_name); |
| | | }; |
| | | |
| | | // helper method to find a folder list item |
| | | this.get_folder_li = function(name, prefix, encode) |
| | | { |
| | |
| | | }; |
| | | |
| | | // update the mailboxlist |
| | | this.set_unread_count = function(mbox, count, set_title) |
| | | this.set_unread_count = function(mbox, count, set_title, mark) |
| | | { |
| | | if (!this.gui_objects.mailboxlist) |
| | | return false; |
| | | |
| | | this.env.unread_counts[mbox] = count; |
| | | this.set_unread_count_display(mbox, set_title); |
| | | |
| | | if (mark) |
| | | this.mark_folder(mbox, mark, '', true); |
| | | }; |
| | | |
| | | // update the mailbox count display |
| | |
| | | array('mailbox' => $mbox_name, 'is_current' => $is_current)); |
| | | } |
| | | |
| | | rcmail_send_unread_count($mbox_name, true); |
| | | rcmail_send_unread_count($mbox_name, true, null, |
| | | (!$is_current && ($status & 1)) ? 'recent' : ''); |
| | | |
| | | if ($status && $is_current) { |
| | | // refresh saved search set |
| | |
| | | } |
| | | |
| | | |
| | | function rcmail_send_unread_count($mbox_name, $force=false, $count=null) |
| | | function rcmail_send_unread_count($mbox_name, $force=false, $count=null, $mark='') |
| | | { |
| | | global $RCMAIL; |
| | | |
| | |
| | | $unseen = $count; |
| | | |
| | | if ($unseen != $old_unseen || ($mbox_name == 'INBOX')) |
| | | $RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX')); |
| | | $RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX'), $mark); |
| | | |
| | | rcmail_set_unseen_count($mbox_name, $unseen); |
| | | |
| | |
| | | color: #666; |
| | | } |
| | | |
| | | #mailboxlist li.recent > a |
| | | { |
| | | color: #0066FF; |
| | | } |
| | | |
| | | #mailboxlist li.selected, |
| | | #mailboxlist li.droptarget li.selected |
| | | { |