Ignore:
Timestamp:
07/20/12 15:40:15 (12 years ago)
Author:
gustavo
Message:

Ticket #2954 - Opcoes de exclusao, mover, exportar, menu de contexto

File:
1 edited

Legend:

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

    r6837 r6841  
    523523                var handler_draw_box = function(data) 
    524524                { 
     525 
    525526                        if(!verify_session(data)) 
    526527                                return; 
     
    14961497                                //helper: 'clone', 
    14971498                                helper: function(event){ 
    1498                                         $(this).find("input:checkbox").attr("checked", true); 
     1499                                        $(this).addClass("selected_msg").find("input:checkbox").attr("checked", true); 
     1500                                        updateSelectedMsgs($(this).find("input:checkbox").is(':checked'),$(this).attr("id")); 
    14991501                                        if ( $("#tbody_box .selected_shortcut_msg").length > 1) { 
    1500                                                 $("#tbody_box .selected_shortcut_msg").find('.checkbox').attr('checked',true); 
     1502                                                $("#tbody_box .selected_shortcut_msg").addClass("selected_msg").find('.checkbox').attr('checked',true); 
     1503                                                $.each( $(".selected_shortcut_msg"), function(index, value){ 
     1504                                        updateSelectedMsgs($(value).find(":checkbox").is(':checked'),$(value).attr("id")); 
     1505                                        }); 
    15011506                                        } 
     1507                                         
    15021508                                        if($("#table_box").find("tr input:checked").length > 1 ) 
    1503                                                 return $("<tr><td>"+DataLayer.render('../prototype/modules/mail/templates/draggin_box.ejs', {texto : (($("#table_box").find("tr input:checked")).length+" mensagens selecionadas"), type: "messages"})+"</td></tr>");                            
     1509                                                return $("<tr><td>"+DataLayer.render('../prototype/modules/mail/templates/draggin_box.ejs', {texto : (totalSelected()+" mensagens selecionadas"), type: "messages"})+"</td></tr>");                              
    15041510                                        if(     $(this).find(".td_msg_subject").text().length > 18 ) 
    15051511                                                return $("<tr><td>"+DataLayer.render('../prototype/modules/mail/templates/draggin_box.ejs', {texto : $(this).find(".td_msg_subject").text().substring(0,18) + "...", type: "messages"})+"</td></tr>"); 
     
    15131519                                containment: "#divAppbox" 
    15141520                        }).bind('contextmenu',function(event){ 
    1515                                         if (!(($(event.target).find('img').length > 0) && ($(event.target).hasClass('td-label')))){ 
    1516                                                 if($(this).find("input:checkbox").attr("checked") != "checked"){ 
    1517                                                         $(this).find("input:checkbox").trigger('click'); 
    1518                                                         $(this).addClass("selected_msg"); 
    1519                                                 } 
     1521                                if (!(($(event.target).find('img').length > 0) && ($(event.target).hasClass('td-label')))){ 
     1522                                        if($(this).find("input:checkbox").attr("checked") != "checked"){ 
     1523                                                $(this).find("input:checkbox").trigger('click'); 
     1524                                                $(this).addClass("selected_msg"); 
    15201525                                        } 
     1526                                        updateSelectedMsgs($(this).find("input:checkbox").is(':checked'),$(this).attr("id")); 
     1527                                } 
    15211528                        }); 
    15221529        } 
Note: See TracChangeset for help on using the changeset viewer.