Changeset 7877


Ignore:
Timestamp:
02/08/13 11:18:07 (7 years ago)
Author:
angelo
Message:

Ticket #3346 - Ao clicar no email dentro do cartao do usuario

Location:
trunk/expressoMail1_2/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/InfoContact.js

    r7832 r7877  
    166166        Element("msg_number").value = "\""+ name+"\" <"+email+">"; 
    167167        InfoContact.hide(); 
    168         new_message("new","null"); 
     168        new_message_to(email); 
    169169} 
    170170 
  • trunk/expressoMail1_2/js/main.js

    r7806 r7877  
    21652165 
    21662166function new_message_to(email) { 
    2167         var new_border_ID = new_message('new','null'); 
    2168         document.getElementById("to_" + new_border_ID).value=email; 
     2167        var new_border_ID = new_message('new','null');           
     2168        if (!new_border_ID){ 
     2169                var msgId; 
     2170                setTimeout(function(){ 
     2171                        msgId = $('#border_tr td.menu-sel').attr('id').toString(); 
     2172                        content = $("#content_id_"+msgId.substr(msgId.lastIndexOf("_")+1,msgId.length)); 
     2173                        draw_reply_boxes_by_field("to",email,content); 
     2174                },500); 
     2175        } 
     2176        else{ 
     2177                var content = $("#content_id_"+new_border_ID);  
     2178                draw_reply_boxes_by_field("to",email,content); 
     2179        }        
    21692180} 
    21702181 
Note: See TracChangeset for help on using the changeset viewer.