Changeset 8147 for branches


Ignore:
Timestamp:
05/10/13 11:14:35 (6 years ago)
Author:
douglas
Message:

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

Location:
branches/2.5/expressoMail1_2/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/expressoMail1_2/js/InfoContact.js

    r7924 r8147  
    162162        Element("msg_number").value = "\""+ name+"\" <"+email+">"; 
    163163        InfoContact.hide(); 
    164         new_message("new","null"); 
     164        new_message_to(email); 
    165165} 
    166166 
  • branches/2.5/expressoMail1_2/js/main.js

    r8132 r8147  
    21452145 
    21462146function new_message_to(email) { 
    2147         var new_border_ID = new_message('new','null'); 
    2148         document.getElementById("to_" + new_border_ID).value=email; 
     2147        var new_border_ID = new_message('new','null');            
     2148        if (!new_border_ID){  
     2149                var msgId;  
     2150                setTimeout(function(){  
     2151                        msgId = $('#border_tr td.menu-sel').attr('id').toString();  
     2152                        content = $("#content_id_"+msgId.substr(msgId.lastIndexOf("_")+1,msgId.length));  
     2153                        draw_reply_boxes_by_field("to",email,content);  
     2154                },500);  
     2155        }  
     2156        else{  
     2157                var content = $("#content_id_"+new_border_ID);   
     2158                draw_reply_boxes_by_field("to",email,content);  
     2159        }         
    21492160} 
    21502161 
Note: See TracChangeset for help on using the changeset viewer.