Changeset 7729


Ignore:
Timestamp:
01/10/13 15:18:12 (11 years ago)
Author:
thiago
Message:

Ticket #3250 - Problema com a exibição zebrada de mensagens, fixed!

File:
1 edited

Legend:

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

    r7718 r7729  
    1111 
    1212 
    13 // tempo do auto save (em milisegundos) 
     13// tempo do auto save (em milisegundos)  
    1414// 20000 = 20 segundos 
    1515var autosave_time = 40000; 
     
    888888                                } 
    889889                        } 
     890            var box = Element("tbody_box"); 
     891            if(box.childNodes.length > 1){ 
     892                updateBoxBgColor(box.childNodes); 
     893            } 
     894 
    890895                        if(parseInt(preferences.use_shortcuts)) 
    891896                                select_msg("null","reload_msg","null"); 
     
    899904                                countNewMessage += data.length; 
    900905                                 
    901                                 desktopNotificationAux = desktopNotification.sentNotification("",get_lang("Notification"), countNewMessage > 1 ? get_lang("You have %1 new messages", countNewMessage) + "!" : get_lang("You have 1 new message") + "!"); 
     906                param = (countNewMessage > 1 ? (get_lang("You have %1 new messages", countNewMessage) + "!") : (get_lang("You have 1 new message") + "!")); 
     907                                desktopNotificationAux = desktopNotification.sentNotification("",get_lang("Notification"), param); 
    902908                                 
    903909                                if(auxNotification !== 'undefined') 
     
    966972                              if( data ) 
    967973                                  handler_refresh( data ); 
     974 
    968975                          }, 
     976              async: false, 
    969977                          beforeSend: function( jqXHR, settings ){ 
    970978                                connector.showProgressBar(); 
     
    972980                          complete: function( jqXHR, settings ){ 
    973981                                connector.hideProgressBar(); 
     982                 
    974983                          } 
    975984 
    976985                }); 
    977986         
     987 
     988 
    978989        var msgs = $("#tbody_box tr"); 
    979990        //Se a classe abaixo (somente ela) não existir a barra de seleção azul deve voltar ao topo. 
     
    982993                msgs.first().addClass("current_selected_shortcut_msg selected_shortcut_msg"); 
    983994        } 
     995 
     996 
    984997 
    985998} 
Note: See TracChangeset for help on using the changeset viewer.