Ignore:
Timestamp:
02/16/11 13:57:59 (13 years ago)
Author:
thiagoaos
Message:

Ticket #1555 - Corrigida a edição do rascunho quando não tem um destinatário.

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

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/draw_api.js

    r3716 r3770  
    17401740                div_toaddress.innerHTML += " (<a STYLE='color: RED;' onclick=javascript:show_div_address_full('"+ID+"','to');>"+get_lang('more')+"</a>)"; 
    17411741                to.appendChild(div_toaddress); 
    1742         } 
     1742        }  
    17431743        else { 
    1744                 toAdd = toaddress_array[ID].toString().replace("<","&lt;"); 
    1745                                 toAdd = toAdd.replace(">","&gt;"); 
    1746                                 to.innerHTML += draw_plugin_cc(ID,toAdd); 
     1744                toAdd = toaddress_array[ID].toString() 
     1745                if( trim(toAdd) != "" ) { 
     1746                        toAdd = toAdd.replace("<","&lt;").replace(">","&gt;"); 
     1747                } else { 
     1748                        toAdd = get_lang("without destination"); 
     1749                } 
     1750                 
     1751                to.innerHTML += draw_plugin_cc(ID,toAdd); 
    17471752        } 
    17481753        to.className = "header_message_field"; 
  • branches/2.2/expressoMail1_2/js/main.js

    r3742 r3770  
    12911291                        openTab.imapUid[new_border_ID] = parseInt(border_ID.substr(0,border_ID.indexOf("_"))); 
    12921292                        document.getElementById('font_border_id_'+new_border_ID).innerHTML = data.subject; 
     1293                        title = "Edição: "+data.subject; 
     1294                         
    12931295                        data.to = Element("to_values_" + border_ID).value; 
    1294                         data.to = data.to.replace(/&lt;/gi,"<"); 
    1295                         data.to = data.to.replace(/&gt;/gi,">"); 
    1296                         title = "Edição: "+data.subject; 
     1296                        if( data.to != get_lang("without destination") ) { 
     1297                                data.to = data.to.replace(/&lt;/gi,"<"); 
     1298                                data.to = data.to.replace(/&gt;/gi,">"); 
     1299                        } else { 
     1300                                data.to = ""; 
     1301                        } 
    12971302 
    12981303                        Element("to_" + new_border_ID).value = data.to; 
Note: See TracChangeset for help on using the changeset viewer.