Changeset 5891


Ignore:
Timestamp:
04/09/12 09:40:27 (12 years ago)
Author:
thiago
Message:

Ticket #2599 - O problema era que ainda não tinha sido tratado na shortcut.js

Location:
trunk/expressoMail1_2/js
Files:
2 edited

Legend:

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

    r5887 r5891  
    492492 
    493493function refresh(alert_new_msg){ 
    494  
    495494        var handler_refresh = function(data){ 
    496                  
    497495                if(data['msg_range_end']) 
    498496                        if(data['msg_range_end'] > 0) 
     
    614612                                        if( data[i].next_msg_number != undefined && data[i].next_msg_number != null ){ 
    615613                                                try { 
    616                                                         box.insertBefore(new_msg, box.childNodes[data[i].msg_key_position]);                                                     
     614                                                        box.insertBefore(new_msg, box.childNodes[data[i].msg_key_position]);                                     
    617615                                                } 
    618616                                                catch (e){ 
     
    628626                                } 
    629627                        } 
     628                         
     629                        select_msg("null","reload_msg","null"); 
    630630 
    631631                        if(parseInt(alert_new_msg) && data.new_msgs > 0) 
  • trunk/expressoMail1_2/js/shortcut.js

    r5635 r5891  
    282282shortcut.add("Delete",function(){ 
    283283         
     284         
    284285        var selected_shortcut_msgs = ''; 
    285286        var tbody_box = Element('tbody_box'); 
     
    313314                proxy_mensagens.delete_msgs(current_folder, selected_shortcut_msgs, 'null'); 
    314315        } 
     316         
    315317} 
    316318,{'disable_in_input':true}); 
     
    498500function select_msg(msg_number, keyboard_action, force_msg_selection) 
    499501{ 
    500         //Select msg, even if the focus isn't the border_id_0 
    501         //if ( (Element('border_id_0').className != 'menu-sel') && (!force_msg_selection) ) 
    502                 //return; 
    503  
     502    /* 
     503          ** Se caso for limpado toda a caixa de email, 
     504          ** é adicionado um novo atalho de seleção. 
     505          ** main.js on function refrash and line 629. 
     506        */ 
     507         
     508        if(keyboard_action == "reload_msg"){ 
     509           $("#tbody_box tr:first").addClass("selected_shortcut_msg");   
     510        } 
     511         
    504512        shift_up_count = 0; 
    505513        shift_down_count = 0; 
     
    637645        } 
    638646} 
    639  
    640  
    641  
    642  
    643  
Note: See TracChangeset for help on using the changeset viewer.