Ignore:
Timestamp:
11/22/12 13:55:27 (11 years ago)
Author:
angelo
Message:

Ticket #3197 - Reduzir tempo de carregamento do modulo Expresso Mail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/search.js

    r7544 r7545  
    563563                                        td.id = "td_message_followup_search_"+uid_msg; 
    564564                                        td.setAttribute("class","search-result-item"); 
    565                                         td1 = '<div class="flag-edited" style="width:8px;height:6px; background-image: url(../prototype/modules/mail/img/mail-sprites.png);background-position: 0 -864px;"></div>'; 
     565                                        td1 = '<div class="flag-edited" style="width:8px;height:6px; background-image: url(../prototype/modules/mail/img/mail-sprites.png);background-position: 0 -864px; background-repeat:no-repeat;"></div>'; 
    566566                                                         
    567567                                        $(td).click(function(event, ui){         
     
    606606                                                                 
    607607                                                                $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    608                                                                 .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 
     608                                                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px",'background-repeat':'no-repeat'}); 
    609609                                                                 
    610610                                                                if (fail) { 
     
    634634                                                        DataLayer.commit(false, false, function(){ 
    635635                                                                $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    636                                                                 .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 
     636                                                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px",'background-repeat':'no-repeat'}); 
    637637                                                                if(current_folder == mailbox){ 
    638638                                                                        updateCacheFollowupflag(messageClickedId, mailbox, false); 
     
    643643                                                                        $('#td_message_followup_' + messageClickedId + ', ' +  
    644644                                                                                'tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    645                                                                                 .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"});                     
     645                                                                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0",'background-repeat':'no-repeat'});                     
    646646                                                                }else{ 
    647647                                                                        updateCacheFollowupflag(messageClickedId, mailbox, false); 
     
    650650                                                                         
    651651                                                                        $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    652                                                                                 .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"}); 
     652                                                                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0",'background-repeat':'no-repeat'}); 
    653653                                                                } 
    654654                                                        }); 
     
    656656                                                } else { 
    657657                                                        $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    658                                                         .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 
     658                                                        .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px",'background-repeat':'no-repeat'}); 
    659659                                                        $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited").css("background", followupColor); 
    660660                                                        $(this).parents('[role="'+messageClickedId+'_'+mailbox+'"]').attr('class', 'selected_msg').find(':checkbox').trigger('click'); 
     
    675675                                        if (aux.labels) { 
    676676                                                //td1 = '<img src="../prototype/modules/mail/img/tag.png">'; 
    677                                                 $(td1).css({'background-image':'url(../prototype/modules/mail/img/mail-sprites.png)','background-position': '0 -1711px',"margin-left":"0",'margin-top':'3px'}); 
     677                                                $(td1).css({'background-image':'url(../prototype/modules/mail/img/mail-sprites.png)','background-position': '0 -1711px',"margin-left":"0",'margin-top':'3px','background-repeat':'no-repeat'}); 
    678678                                                updateLabelsColumn(aux)          
    679679                                        } else { 
Note: See TracChangeset for help on using the changeset viewer.