Changeset 7408


Ignore:
Timestamp:
10/10/12 17:37:37 (7 years ago)
Author:
thiago
Message:

Ticket #3088 - Listagens de mensagens na aba da pasta do MailArchiver?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.0-expresso1/expressoMail1_2/js/mail_archiver.js

    r7353 r7408  
    14181418        } 
    14191419        var objfolder = new Object(); 
    1420         objfolder.folder = folderid;         
     1420        objfolder.folder = folderid; 
    14211421        //var testing_data_xml = '<?xml version="1.0" encoding="UTF-8"?><query lowerIndex="0" upperIndex="50"><folder id="'+folderid+'"/><order asc="date"/><order desc="subject"/></query>'; 
    14221422        //var testing_data_json_mapped = '{"query":{"@lowerIndex":"0", "@upperIndex":"50", "folder":[{"@id":"'+folderid+'"}], "order":[{"@asc":"date", "@desc":"subject"}]}}'; 
     
    14251425        expresso_mail_archive.currentfolder = folderid; 
    14261426         
     1427 
    14271428        //ArchiveServices.listMessages(expresso_mail_archive.listMessagesOperationOK, expresso_mail_archive.listMessagesOperationFailure, sessid, query_data); 
    14281429        ArchiveServices.listMessages(expresso_mail_archive.listMessagesOperationOK, expresso_mail_archive.listMessagesOperationFailure, expresso_mail_archive.session.id, query_data); 
     
    15381539    draw_paging(folder_num_msgs);     
    15391540    if(((msgtot) && (msgunseen)) || ((parseInt(msgtot)==0)&&(parseInt(msgunseen)==0))){ 
    1540         expresso_mail_archive.updateCounter(msgtot, msgunseen); 
     1541        //volta aqui 
     1542        Element('new_m').innerHTML = '<font color="RED">'+$(".tr_msg_unread").length+'</font>'; 
     1543        //expresso_mail_archive.updateCounter(msgtot, $(".tr_msg_unread").length); 
    15411544    } 
    15421545    else{ 
     
    18031806MailArchiver.prototype.updateCounter = function(a,b){ 
    18041807    //window.alert('updateCounter reached'); 
     1808 
    18051809    if(((a) && (b)) || ((parseInt(a)==0)&&(parseInt(b)==0))){ 
    1806         Element("tot_m").innerHTML = a; 
    1807         Element('new_m').innerHTML = (b>0) ? '<font color="RED">'+b+'</font>' : 0;  
     1810        //Element("tot_m").innerHTML = a; 
     1811        Element('new_m').innerHTML = (b >= 0) ? '<font color="RED">'+b+'</font>' : 0;  
    18081812        return; 
    18091813    } 
Note: See TracChangeset for help on using the changeset viewer.