Changeset 636bd77 in github


Ignore:
Timestamp:
Nov 24, 2011 5:26:35 AM (18 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
f4cfb14
Parents:
80216d0
Message:
  • Mark (with different color) folders with recent messages (#1486234)
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r5510a52 r636bd77  
    22=========================== 
    33 
     4- Mark (with different color) folders with recent messages (#1486234) 
    45- Fix possible infinite redirect on attachment preview (#1488199) 
    56- Improved clickjacking protection for browsers which don't support X-Frame-Options headers 
  • program/js/app.js

    r10e2dbbb r636bd77  
    20222022 
    20232023    this.select_folder(mbox, '', true); 
     2024    this.unmark_folder(mbox, 'recent', '', true); 
    20242025    this.env.mailbox = mbox; 
    20252026 
     
    54495450  }; 
    54505451 
     5452  // adds a class to selected folder 
     5453  this.mark_folder = function(name, class_name, prefix, encode) 
     5454  { 
     5455    $(this.get_folder_li(name, prefix, encode)).addClass(class_name); 
     5456  }; 
     5457 
     5458  // adds a class to selected folder 
     5459  this.unmark_folder = function(name, class_name, prefix, encode) 
     5460  { 
     5461    $(this.get_folder_li(name, prefix, encode)).removeClass(class_name); 
     5462  }; 
     5463 
    54515464  // helper method to find a folder list item 
    54525465  this.get_folder_li = function(name, prefix, encode) 
     
    55565569 
    55575570  // update the mailboxlist 
    5558   this.set_unread_count = function(mbox, count, set_title) 
     5571  this.set_unread_count = function(mbox, count, set_title, mark) 
    55595572  { 
    55605573    if (!this.gui_objects.mailboxlist) 
     
    55635576    this.env.unread_counts[mbox] = count; 
    55645577    this.set_unread_count_display(mbox, set_title); 
     5578 
     5579    if (mark) 
     5580      this.mark_folder(mbox, mark, '', true); 
    55655581  }; 
    55665582 
  • program/steps/mail/check_recent.inc

    rbba2529 r636bd77  
    5050    } 
    5151 
    52     rcmail_send_unread_count($mbox_name, true); 
     52    rcmail_send_unread_count($mbox_name, true, null, 
     53      (!$is_current && ($status & 1)) ? 'recent' : ''); 
    5354 
    5455    if ($status && $is_current) { 
  • program/steps/mail/func.inc

    rd617566 r636bd77  
    473473 
    474474 
    475 function rcmail_send_unread_count($mbox_name, $force=false, $count=null) 
     475function rcmail_send_unread_count($mbox_name, $force=false, $count=null, $mark='') 
    476476{ 
    477477  global $RCMAIL; 
     
    485485 
    486486  if ($unseen != $old_unseen || ($mbox_name == 'INBOX')) 
    487     $RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX')); 
     487    $RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX'), $mark); 
    488488 
    489489  rcmail_set_unseen_count($mbox_name, $unseen); 
  • skins/default/mail.css

    r91e589a r636bd77  
    447447{ 
    448448  color: #666; 
     449} 
     450 
     451#mailboxlist li.recent > a 
     452{ 
     453  color: #0066FF; 
    449454} 
    450455 
Note: See TracChangeset for help on using the changeset viewer.