Changeset 7833


Ignore:
Timestamp:
02/01/13 16:03:25 (7 years ago)
Author:
marcosw
Message:

Ticket #3331 - Implementação da exibição de flags para mensagens anexas locais

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.1-expresso1/prototype/modules/attach_message/attach_message.js

    r7831 r7833  
    284284    var returns = ''; 
    285285 
    286     $.each( flagObj, function(i, flag){ 
    287  
     286    $.each( flagObj.tag , function(i, flag){ 
    288287        flags[ flag['@value'] ] = true; 
    289  
    290288    }); 
    291289 
    292 /*0*/    returns += (flags['seen'] ? '0.' : '1.') ; 
    293 /*1 2*/  returns += '0.';   
    294 /*3*/    returns += (flags['unflagged'] ? '0.' : '1.') ; 
    295 /*4*/    returns += '0.'; 
    296 /*5*/    returns += '0'; 
     290        returns += (flags['seen'] ? '0,' : '1,') ; 
     291        returns += (flags['answered'] && !flags['forwarded'] ? '1,' : '0,') ; 
     292        returns += (flags['forwarded'] ? '1,' : '0,') ; 
     293        returns += (flags['flagged'] || flags['importance_high'] ? '1,' : '0,') ; 
     294        returns += '0,0'; 
    297295             
    298  
    299 //Answered: parseInt(cellvalue[1]) ? 'Answered' : (parseInt(cellvalue[2]) ? 'Forwarded' : ''),              
    300 //Recent: parseInt(cellvalue[4])  ? 'Recent' : '',             
    301 //Draft: parseInt(cellvalue[5]) ? 'Draft' : ''         
    302      
    303296    return returns; 
    304297} 
Note: See TracChangeset for help on using the changeset viewer.