Changeset 7417


Ignore:
Timestamp:
10/15/12 10:28:37 (12 years ago)
Author:
eduardow
Message:

Ticket #3159 - Foco duplo de mensagens no Expresso Mail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/js/shortcut.js

    r7228 r7417  
    323323                } 
    324324        }else{ 
     325 
    325326                proxy_mensagens.delete_msgs(openTab.imapBox[currentTab], currentTab.substring(0, selMessageShortcut.indexOf("_r")), 'null'); 
    326327         
     
    409410{ 
    410411    shortcut.add("Up",function(){ 
    411         $(".selected_shortcut_msg").removeClass("selected_shortcut_msg"); 
    412         if($(".current_selected_shortcut_msg").prev().parents("#tbody_box").length) 
    413             $(".current_selected_shortcut_msg").blur().removeClass("current_selected_shortcut_msg").prev().addClass("current_selected_shortcut_msg selected_shortcut_msg"); 
    414         $(".current_selected_shortcut_msg").focus(); 
     412        if (currentTab == 0){  
     413                $(".selected_shortcut_msg").removeClass("selected_shortcut_msg");  
     414                if($(".current_selected_shortcut_msg").prev().parents("#tbody_box").length)  
     415                    $(".current_selected_shortcut_msg").blur().removeClass("current_selected_shortcut_msg").prev().addClass("current_selected_shortcut_msg selected_shortcut_msg");  
     416                $(".current_selected_shortcut_msg").focus();  
     417        } 
    415418    },{'disable_in_input':true}); 
    416419 
    417420    shortcut.add("Down",function(){ 
    418         $(".selected_shortcut_msg").removeClass("selected_shortcut_msg"); 
    419         if($(".current_selected_shortcut_msg").next().parents("#tbody_box").length) 
    420             $(".current_selected_shortcut_msg").blur().removeClass("current_selected_shortcut_msg").next().addClass("current_selected_shortcut_msg selected_shortcut_msg"); 
    421         $(".current_selected_shortcut_msg").focus(); 
     421       if (currentTab == 0){  
     422                    $(".selected_shortcut_msg").removeClass("selected_shortcut_msg");  
     423                    if($(".current_selected_shortcut_msg").next().parents("#tbody_box").length)  
     424                        $(".current_selected_shortcut_msg").blur().removeClass("current_selected_shortcut_msg").next().addClass("current_selected_shortcut_msg selected_shortcut_msg");  
     425                    $(".current_selected_shortcut_msg").focus();  
     426            } 
    422427    },{'disable_in_input':true}); 
    423428 
Note: See TracChangeset for help on using the changeset viewer.