Changeset 4503 for branches/2.2.0.1


Ignore:
Timestamp:
05/25/11 12:13:21 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1916 - Erro ao salvar mensagem automaticamente.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/expressoMail1_2/js/main.js

    r4501 r4503  
    19841984        form.appendChild(input_insertImg); 
    19851985 
    1986     var mail_type = document.createElement( 'input' ); 
    1987         mail_type.name = 'type'; 
    1988         mail_type.type = 'hidden'; 
    1989         mail_type.value = ( mail_as_plain ) ? 'plain' : 'html'; 
     1986        var mail_type; 
     1987         
     1988        if (is_ie) 
     1989        { 
     1990            mail_type = document.createElement('<input type="hidden" />'); 
     1991        } 
     1992        else 
     1993            { 
     1994                mail_type = document.createElement('input'); 
     1995                mail_type.setAttribute('type', 'hidden'); 
     1996            } 
     1997        mail_type.setAttribute('name', 'type'); 
     1998        var mail_type_value = ( mail_as_plain ) ? 'plain' : 'html'; 
     1999        mail_type.setAttribute("value", mail_type_value); 
     2000 
    19902001        form.parentNode.appendChild(mail_type); 
    19912002 
Note: See TracChangeset for help on using the changeset viewer.