Changeset 6875 for sandbox/2.4.2-expresso2/expressoMail1_2/js
- Timestamp:
- 07/25/12 16:02:01 (12 years ago)
- 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 1519 1519 } 1520 1520 1521 if( $("#table_box").find("tr input:checked").length> 1 )1521 if(totalSelected() > 1 ) 1522 1522 return $("<tr><td>"+DataLayer.render('../prototype/modules/mail/templates/draggin_box.ejs', {texto : (totalSelected()+" mensagens selecionadas"), type: "messages"})+"</td></tr>"); 1523 1523 if( $(this).find(".td_msg_subject").text().length > 18 ) … … 1684 1684 1685 1685 $(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(); 1691 1693 }); 1692 1694 … … 4027 4029 var pthis = $(this); 4028 4030 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, ","); 4030 4035 str = str.split(","); 4031 4036 $.each(str, function(index, value){ … … 4678 4683 fullFileName : attach_box.find(".att-box-fullfilename").text(), 4679 4684 fileSize : attach_box.find(".att-box-filesize").text(), 4680 OK : true,4681 4685 error : false 4682 4686 }; -
sandbox/2.4.2-expresso2/expressoMail1_2/js/main.js
r6850 r6875 683 683 }); 684 684 } 685 if( $("#table_box").find("tr input:checked").length> 1)685 if(totalSelected() > 1) 686 686 return $("<tr><td>"+DataLayer.render('../prototype/modules/mail/templates/draggin_box.ejs', {texto : (totalSelected()+" mensagens selecionadas"), type: "messages"})+"</td></tr>"); 687 687 if( $(this).find(".td_msg_subject").text().length > 18 ) -
sandbox/2.4.2-expresso2/expressoMail1_2/js/shortcut.js
r6841 r6875 331 331 if($(".current_selected_shortcut_msg").prev().parents("#tbody_box").length) 332 332 $(".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(); 334 334 } 335 335 },{'disable_in_input':true}); … … 342 342 if($(".current_selected_shortcut_msg").next().parents("#tbody_box").length) 343 343 $(".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(); 345 345 } 346 346 },{'disable_in_input':true}); … … 364 364 updateSelectedMsgs($(value).find(":checkbox").is(':checked'),$(value).attr("id")); 365 365 }); 366 $(".current_selected_shortcut_msg").focus(); 366 367 } 367 368 },{'disable_in_input':true}); … … 470 471 },{'disable_in_input':true}); 471 472 472 shortcut.add("f 5",function(){473 shortcut.add("f9",function(){ 473 474 Element("em_refresh_button").onclick(); 474 475 return; 475 },{'disable_in_input': true});476 },{'disable_in_input':false}); 476 477 477 478 function exec_msg_action(action)
Note: See TracChangeset
for help on using the changeset viewer.