till
2008-03-24 4bca672a9d7198a09eed0878f26078d0c5a69128
* committing patch from #1484906



1 files modified
11 ■■■■ changed files
program/js/app.js 11 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -1525,12 +1525,16 @@
  {
    // mark all message rows as read/unread
    var icn_src;
    var res_uids = new Array();
    var rows = this.message_list.rows;
    for (var i=0; i<a_uids.length; i++)
      {
      uid = a_uids[i];
      if (rows[uid])
      // check if flag isn't set yet
      if (rows[uid] && ((flag=='unread' && !rows[uid].unread) || (flag=='read' && rows[uid].unread)))
        {
        res_uids[res_uids.length] = uid;
        rows[uid].unread = (flag=='unread' ? true : false);
        
        if (rows[uid].classname.indexOf('unread')<0 && rows[uid].unread)
@@ -1556,8 +1560,9 @@
          rows[uid].icon.src = icn_src;
        }
      }
    this.http_post('mark', '_uid='+a_uids.join(',')+'&_flag='+flag);
    if (res_uids.length)
      this.http_post('mark', '_uid='+res_uids.join(',')+'&_flag='+flag);
  };
  
  // mark all message rows as deleted/undeleted