Changeset 2115


Ignore:
Timestamp:
07/16/10 19:16:19 (19 months ago)
Author:
dart
Message:

LoReality?:
o Fix unread messages status

Location:
trunk/loreality
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/loreality/loreality/controllers/messager.py

    r2114 r2115  
    7979                'from':p.name, 
    8080                'subject':m.subject, 
    81                 'unread':m.unread, 
     81                'is_unread':m.unread, 
     82                'unread':pilot.messages_unread, 
    8283                'id':str(m.id), 
    8384                }) 
     
    107108        res = {} 
    108109        res['message'] = { 
    109             'unread':p.messages_unread, 
     110            'unread':pilot.messages_unread, 
    110111            'id':str(message.id), 
    111112            'text':literal(message.text), 
  • trunk/loreality/loreality/public/js/messager.js

    r2114 r2115  
    7272            msg = messages[i]; 
    7373            var trclass = "read"; 
    74             if( msg['unread'] ) trclass = "unread"; 
     74            if( msg['is_unread'] ) trclass = "unread"; 
    7575            buffer += "<tr id='tr-msg-" + 
    7676                msg['id'] + 
Note: See TracChangeset for help on using the changeset viewer.