Changeset 6405


Ignore:
Timestamp:
06/04/12 14:34:10 (12 years ago)
Author:
gustavo
Message:

Ticket #2768 - Melhorias na criação de mensagens

Location:
sandbox/2.4.1-3/expressoMail1_2/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.1-3/expressoMail1_2/js/QuickCatalogSearch.js

    r6380 r6405  
    602602                        draw_email_box( 
    603603                                (data_[parseInt(divs.split("_")[1])-1][ldap_id] ? data_[parseInt(divs.split("_")[1])-1][ldap_id][0] : final_contact) 
    604                                 , $(field_).filter("input") 
     604                                , content.find(field_).filter("input") 
    605605                        ); 
    606606                }else{ 
    607                         draw_email_box(final_contact, $(field_).filter("input")); 
     607                        draw_email_box(final_contact, content.find(field_).filter("input")); 
    608608                } 
    609609                button.onclick = function(){ 
  • sandbox/2.4.1-3/expressoMail1_2/js/QuickSearchUser.js

    r5477 r6405  
    5959                if (openTab.type[currentTab] != 4) 
    6060                { 
    61                         Element("msg_number").value = "\""+cn+"\" <"+mail+">"; 
    6261                        new_message("new","null"); 
     62                        draw_email_box("\""+cn+"\" <"+mail+">", $("#content_id_"+currentTab).find(".to").filter("input")); 
    6363                } 
    6464                else 
    6565                { 
    66                         var ToField = Element('to_'+currentTab); 
    67                         ToField.value = ToField.value +"\""+cn+"\" <"+mail+">,"; 
     66                        draw_email_box("\""+cn+"\" <"+mail+">", $("#content_id_"+currentTab).find(".to").filter("input")); 
    6867                } 
    6968        } 
  • sandbox/2.4.1-3/expressoMail1_2/js/main.js

    r6334 r6405  
    16261626                case "reply_without_history": 
    16271627                        RichTextEditor.replyController = true; //Seta o editor como modo reply 
    1628                         content.find('[name="input_to"]').val(data.to); 
     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                        }); 
     1633                         
    16291634                        title = "Re: " + html_entities(data.subject); 
    16301635                        content.find(".subject").val("Re: " + data.subject);                     
     
    16431648                        content.find(".subject").val("Re: " + data.subject); 
    16441649                        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                        }); 
    16451654                        content.find('[name="msg_reply_from"]').val($("#msg_number_" + border_ID).val());        
    16461655 
     
    16731682                        else 
    16741683                                content.find('[name="input_to"]').val(data.to + ',' + data.to_all); 
    1675                                  
     1684                         
     1685                        array = data.to_all.split(","); 
     1686                        $.each(array, function(index, value){ 
     1687                                draw_email_box(value, content.find(".to").filter("input")); 
     1688                        }); 
     1689                         
    16761690                        if (data.cc){ 
    16771691                                data.cc = new Array(); 
     
    16891703                                        content.find(".cc-button").toggleClass("expressomail-button-icon-ative"); 
    16901704                                        content.find(".cc-button").find("span").html("Remover CC"); 
    1691                                         content.find('[name="input_cc"]').elastic().unbind('blur'); 
    1692                                         content.find('[name="input_cc"]').trigger("update"); 
     1705                                        array = data.cc.split(","); 
     1706                                        $.each(array, function(index, value){ 
     1707                                                draw_email_box(value, content.find(".cc").filter("input")); 
     1708                                        }); 
    16931709                                } 
    16941710                        } 
     
    17121728                        else 
    17131729                                data.to_all = ""; 
     1730 
     1731                        array = data.to_all.split(","); 
     1732                        $.each(array, function(index, value){ 
     1733                                draw_email_box(value, content.find(".to").filter("input")); 
     1734                        }); 
     1735                         
    17141736                        title = "Re: " + html_entities(data.subject); 
    17151737                         
     
    17321754                                        content.find(".cc-button").toggleClass("expressomail-button-icon-ative"); 
    17331755                                        content.find(".cc-button").find("span").html("Remover CC"); 
    1734                                         content.find('[name="input_cc"]').elastic().unbind('blur'); 
    1735                                         content.find('[name="input_cc"]').trigger("update"); 
     1756                                         
     1757                                        array = data.cc.split(","); 
     1758                                        $.each(array, function(index, value){ 
     1759                                                draw_email_box(value, content.find(".cc").filter("input")); 
     1760                                        }); 
    17361761                                } 
    17371762                        } 
     
    17881813                                } 
    17891814                                content.find('[name="input_to"]').val(_to +','); 
     1815                                draw_email_box(_to, content.find(".to").filter("input")); 
    17901816                                Element('msg_number').value = ''; 
    17911817                        } 
     
    18131839                        } 
    18141840 
     1841                        array = data.to.split(","); 
     1842                        $.each(array, function(index, value){ 
     1843                                draw_email_box(value, content.find(".to").filter("input")); 
     1844                        }); 
     1845                         
    18151846                        content.find('[name="input_to"]').val(data.to); 
    18161847                        if (data.cc){ 
     
    18221853                                content.find(".cc-button").toggleClass("expressomail-button-icon-ative"); 
    18231854                                content.find(".cc-button").find("span").html(get_lang('Remove CC')); 
    1824                                 content.find('[name="input_cc"]').elastic().unbind('blur'); 
    1825                                 content.find('[name="input_cc"]').trigger("update"); 
     1855                                array = data.cc.split(","); 
     1856                                $.each(array, function(index, value){ 
     1857                                        draw_email_box(value, content.find(".cc").filter("input")); 
     1858                                }); 
    18261859                        } 
    18271860                        if (data.cco){ 
     
    18311864                                        content.find(".cco-button").toggleClass("expressomail-button-icon-ative"); 
    18321865                                        content.find(".cco-button").find("span").html(get_lang('Remove CCo')); 
    1833                                         content.find('[name="input_cco"]').elastic().unbind('blur'); 
    1834                                         content.find('[name="input_cco"]').trigger("update"); 
     1866                                        array = data.cco.split(","); 
     1867                                        $.each(array, function(index, value){ 
     1868                                                draw_email_box(value, content.find(".cco").filter("input")); 
     1869                                        }); 
    18351870                                } 
    18361871                        } 
Note: See TracChangeset for help on using the changeset viewer.