Changeset 6841 for sandbox/2.4.2-expresso2/expressoMail1_2/js/draw_api.js
- Timestamp:
- 07/20/12 15:40:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso2/expressoMail1_2/js/draw_api.js
r6837 r6841 523 523 var handler_draw_box = function(data) 524 524 { 525 525 526 if(!verify_session(data)) 526 527 return; … … 1496 1497 //helper: 'clone', 1497 1498 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")); 1499 1501 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 }); 1501 1506 } 1507 1502 1508 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>"); 1504 1510 if( $(this).find(".td_msg_subject").text().length > 18 ) 1505 1511 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>"); … … 1513 1519 containment: "#divAppbox" 1514 1520 }).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"); 1520 1525 } 1526 updateSelectedMsgs($(this).find("input:checkbox").is(':checked'),$(this).attr("id")); 1527 } 1521 1528 }); 1522 1529 }
Note: See TracChangeset
for help on using the changeset viewer.