Changeset 6406 for sandbox/2.4.1-3/expressoMail1_2/js/main.js
- Timestamp:
- 06/04/12 15:49:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-3/expressoMail1_2/js/main.js
r6405 r6406 1627 1627 RichTextEditor.replyController = true; //Seta o editor como modo reply 1628 1628 content.find('[name="input_to"]').val(data.to); 1629 array = data.to.split(","); 1630 $.each(array, function(index, value){ 1631 draw_email_box(value, content.find(".to").filter("input")); 1632 }); 1629 1630 draw_reply_boxes_by_field("to", data.to, content); 1633 1631 1634 1632 title = "Re: " + html_entities(data.subject); … … 1648 1646 content.find(".subject").val("Re: " + data.subject); 1649 1647 content.find('[name="input_to"]').val(data.to); 1650 array = data.to.split(","); 1651 $.each(array, function(index, value){ 1652 draw_email_box(value, content.find(".to").filter("input")); 1653 }); 1648 1649 draw_reply_boxes_by_field("to", data.to, content); 1650 1654 1651 content.find('[name="msg_reply_from"]').val($("#msg_number_" + border_ID).val()); 1655 1652 … … 1683 1680 content.find('[name="input_to"]').val(data.to + ',' + data.to_all); 1684 1681 1685 array = data.to_all.split(","); 1686 $.each(array, function(index, value){ 1687 draw_email_box(value, content.find(".to").filter("input")); 1688 }); 1682 draw_reply_boxes_by_field("to", data.to_all, content); 1689 1683 1690 1684 if (data.cc){ … … 1698 1692 if(data.cc != ""){ 1699 1693 content.find('[name="input_cc"]').val(data.cc); 1700 input_binds(content.find('[name="input_cc"]') , new_border_ID);1694 input_binds(content.find('[name="input_cc"]').parent(), new_border_ID); 1701 1695 content.find(".cc-tr").show();//cc-button 1702 1696 //document.getElementById("a_cc_link" + new_border_ID).value = data.cc; 1703 1697 content.find(".cc-button").toggleClass("expressomail-button-icon-ative"); 1704 1698 content.find(".cc-button").find("span").html("Remover CC"); 1705 array = data.cc.split(","); 1706 $.each(array, function(index, value){ 1707 draw_email_box(value, content.find(".cc").filter("input")); 1708 }); 1699 draw_reply_boxes_by_field("cc", data.cc, content); 1709 1700 } 1710 1701 } … … 1729 1720 data.to_all = ""; 1730 1721 1731 array = data.to_all.split(","); 1732 $.each(array, function(index, value){ 1733 draw_email_box(value, content.find(".to").filter("input")); 1734 }); 1722 draw_reply_boxes_by_field("to", data.to_all, content); 1735 1723 1736 1724 title = "Re: " + html_entities(data.subject); … … 1750 1738 if(data.cc != ""){ 1751 1739 content.find('[name="input_cc"]').val(data.cc); 1752 input_binds(content.find('[name="input_cc"]') , new_border_ID);1740 input_binds(content.find('[name="input_cc"]').parent(), new_border_ID); 1753 1741 content.find(".cc-tr").show(); 1754 1742 content.find(".cc-button").toggleClass("expressomail-button-icon-ative"); 1755 1743 content.find(".cc-button").find("span").html("Remover CC"); 1756 1744 1757 array = data.cc.split(","); 1758 $.each(array, function(index, value){ 1759 draw_email_box(value, content.find(".cc").filter("input")); 1760 }); 1745 draw_reply_boxes_by_field("cc", data.cc, content); 1761 1746 } 1762 1747 } … … 1839 1824 } 1840 1825 1841 array = data.to.split(","); 1842 $.each(array, function(index, value){ 1843 draw_email_box(value, content.find(".to").filter("input")); 1844 }); 1826 draw_reply_boxes_by_field("to", data.to, content); 1845 1827 1846 1828 content.find('[name="input_to"]').val(data.to); … … 1849 1831 data.cc = data.cc.replace(/>/gi,">"); 1850 1832 content.find('[name="input_cc"]').val(data.cc); 1851 input_binds(content.find('[name="input_cc"]') , new_border_ID);1833 input_binds(content.find('[name="input_cc"]').parent(), new_border_ID); 1852 1834 content.find(".cc-tr").show(); 1853 1835 content.find(".cc-button").toggleClass("expressomail-button-icon-ative"); 1854 1836 content.find(".cc-button").find("span").html(get_lang('Remove CC')); 1855 array = data.cc.split(","); 1856 $.each(array, function(index, value){ 1857 draw_email_box(value, content.find(".cc").filter("input")); 1858 }); 1837 draw_reply_boxes_by_field("cc", data.cc, content); 1859 1838 } 1860 1839 if (data.cco){ … … 1864 1843 content.find(".cco-button").toggleClass("expressomail-button-icon-ative"); 1865 1844 content.find(".cco-button").find("span").html(get_lang('Remove CCo')); 1866 array = data.cco.split(","); 1867 $.each(array, function(index, value){ 1868 draw_email_box(value, content.find(".cco").filter("input")); 1869 }); 1845 input_binds(content.find('[name="input_cco"]').parent(), new_border_ID); 1846 draw_reply_boxes_by_field("cco", data.cco, content); 1870 1847 } 1871 1848 } … … 1907 1884 resizeWindow(); 1908 1885 return new_border_ID; //Preciso retornar o ID da nova mensagem. 1886 } 1887 1888 //DESENHA OS RETANGULOS PARA OS E-MAIL NA OPÇÃO REPLY 1889 function draw_reply_boxes_by_field(field, value, context){ 1890 array = value.split(","); 1891 $.each(array, function(index, value){ 1892 draw_email_box(value, context.find("."+field).filter("input")); 1893 }); 1909 1894 } 1910 1895
Note: See TracChangeset
for help on using the changeset viewer.