Changeset 8055 for trunk/expressoMail1_2/js/main.js
- Timestamp:
- 03/21/13 16:56:16 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/main.js
r8025 r8055 2150 2150 msgId = $('#border_tr td.menu-sel').attr('id').toString(); 2151 2151 content = $("#content_id_"+msgId.substr(msgId.lastIndexOf("_")+1,msgId.length)); 2152 draw_reply_boxes_by_field("to",email,content); 2152 /*Envio de email para um grupo*/ 2153 if (email.indexOf('@') == -1){ 2154 var groups = REST.get('/groups'); 2155 $.each(normalizeContacts(groups.collection.itens),function(index,group){ 2156 if (group.name.toLocaleLowerCase() == email.toLocaleLowerCase()){ 2157 email = group.id; 2158 } 2159 }); 2160 draw_email_box(email, content.find('.to').filter('textarea:first'),"G"); 2161 } 2162 else 2163 draw_reply_boxes_by_field("to",email,content); 2153 2164 },500); 2154 2165 } 2155 2166 else{ 2156 2167 var content = $("#content_id_"+new_border_ID); 2157 draw_reply_boxes_by_field("to",email,content); 2168 if (email.indexOf('@') == -1){ 2169 var groups = REST.get('/groups'); 2170 $.each(normalizeContacts(groups.collection.itens),function(index,group){ 2171 if (group.name.toLocaleLowerCase() == email.toLocaleLowerCase()){ 2172 email = group.id; 2173 } 2174 }); 2175 draw_email_box(email, content.find('.to').filter('textarea:first'),"G"); 2176 } 2177 else 2178 draw_reply_boxes_by_field("to",email,content); 2158 2179 } 2159 2180 }
Note: See TracChangeset
for help on using the changeset viewer.