Ignore:
Timestamp:
07/25/12 16:02:01 (12 years ago)
Author:
gustavo
Message:

Ticket #2954 - Corrigidos alguns bugs de anexos e selecao de mensagens

Location:
sandbox/2.4.2-expresso2/expressoMail1_2/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.2-expresso2/expressoMail1_2/js/draw_api.js

    r6874 r6875  
    15191519                                        } 
    15201520                                         
    1521                                         if($("#table_box").find("tr input:checked").length > 1 ) 
     1521                                        if(totalSelected() > 1 ) 
    15221522                                                return $("<tr><td>"+DataLayer.render('../prototype/modules/mail/templates/draggin_box.ejs', {texto : (totalSelected()+" mensagens selecionadas"), type: "messages"})+"</td></tr>");                              
    15231523                                        if(     $(this).find(".td_msg_subject").text().length > 18 ) 
     
    16841684                 
    16851685                $(chk_box_element).click(function(e){ 
    1686                                 updateSelectedMsgs($(this).is(':checked'),headers_msgs.msg_number); 
    1687                                 $(".selected_shortcut_msg").removeClass("current_selected_shortcut_msg selected_shortcut_msg"); 
    1688                                 if(preferences.use_shortcuts == '1') 
    1689                                         $(this).parents("tr:first").addClass("current_selected_shortcut_msg selected_shortcut_msg"); 
    1690                                 changeBgColor(e,headers_msgs.msg_number); 
     1686                        updateSelectedMsgs($(this).is(':checked'),headers_msgs.msg_number); 
     1687                        $(".selected_shortcut_msg").removeClass("current_selected_shortcut_msg selected_shortcut_msg"); 
     1688                        $(".current_selected_shortcut_msg").removeClass("current_selected_shortcut_msg selected_shortcut_msg"); 
     1689                        if(preferences.use_shortcuts == '1') 
     1690                                $(this).parents("tr:first").addClass("current_selected_shortcut_msg selected_shortcut_msg"); 
     1691                        changeBgColor(e,headers_msgs.msg_number); 
     1692                        $(this).blur(); 
    16911693                }); 
    16921694 
     
    40274029                var pthis = $(this); 
    40284030                setTimeout(function() { 
    4029                         var str = pthis.val().replace(/[,;\t\n]/gi, ","); 
     4031                        if(pthis.val().split('"') > 1) 
     4032                                var str = pthis.val().replace(/[,;\t]/gi, ",");  
     4033                        else 
     4034                                var str = pthis.val().replace(/[,;\t\n\s]/gi, ","); 
    40304035                        str = str.split(","); 
    40314036                        $.each(str, function(index, value){ 
     
    46784683                fullFileName : attach_box.find(".att-box-fullfilename").text(), 
    46794684                fileSize : attach_box.find(".att-box-filesize").text(), 
    4680                 OK : true, 
    46814685                error : false 
    46824686            }; 
  • sandbox/2.4.2-expresso2/expressoMail1_2/js/main.js

    r6850 r6875  
    683683                                                        }); 
    684684                                                        } 
    685                                                         if($("#table_box").find("tr input:checked").length > 1) 
     685                                                        if(totalSelected() > 1) 
    686686                                                                return $("<tr><td>"+DataLayer.render('../prototype/modules/mail/templates/draggin_box.ejs', {texto : (totalSelected()+" mensagens selecionadas"), type: "messages"})+"</td></tr>"); 
    687687                                                        if(     $(this).find(".td_msg_subject").text().length > 18 ) 
  • sandbox/2.4.2-expresso2/expressoMail1_2/js/shortcut.js

    r6841 r6875  
    331331        if($(".current_selected_shortcut_msg").prev().parents("#tbody_box").length) 
    332332            $(".current_selected_shortcut_msg").blur().removeClass("current_selected_shortcut_msg").prev().addClass("current_selected_shortcut_msg selected_shortcut_msg"); 
    333         $(".current_selected_shortcut_msg").focus(); 
     333        $(".current_selected_shortcut_msg").addClass("selected_shortcut_msg").focus(); 
    334334    } 
    335335},{'disable_in_input':true}); 
     
    342342        if($(".current_selected_shortcut_msg").next().parents("#tbody_box").length) 
    343343            $(".current_selected_shortcut_msg").blur().removeClass("current_selected_shortcut_msg").next().addClass("current_selected_shortcut_msg selected_shortcut_msg"); 
    344         $(".current_selected_shortcut_msg").focus(); 
     344        $(".current_selected_shortcut_msg").addClass("selected_shortcut_msg").focus(); 
    345345    } 
    346346},{'disable_in_input':true}); 
     
    364364            updateSelectedMsgs($(value).find(":checkbox").is(':checked'),$(value).attr("id")); 
    365365        }); 
     366        $(".current_selected_shortcut_msg").focus(); 
    366367    } 
    367368},{'disable_in_input':true}); 
     
    470471},{'disable_in_input':true}); 
    471472 
    472 shortcut.add("f5",function(){ 
     473shortcut.add("f9",function(){ 
    473474    Element("em_refresh_button").onclick(); 
    474475    return; 
    475 },{'disable_in_input':true}); 
     476},{'disable_in_input':false}); 
    476477 
    477478function exec_msg_action(action) 
Note: See TracChangeset for help on using the changeset viewer.