Changeset 4266 for branches/2.2.0.1


Ignore:
Timestamp:
05/06/11 17:40:10 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1726 - Funcionamento do checkbox para e-mail somente texto. r4229

File:
1 edited

Legend:

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

    r4258 r4266  
    31523152                        document.createTextNode( ' | ' ) 
    31533153                ).parentNode.appendChild( 
    3154                         document.createTextNode( get_lang('Send this mail as text plain') + '.') 
    3155                 ).parentNode.appendChild( 
    3156                         document.createElement( 'input' ) 
     3154                        document.createTextNode( get_lang('Send this mail as text plain') + '.')                 
    31573155                ); 
    3158                 text_plain.setAttribute( 'tabIndex', '-1' ); 
    3159                 text_plain.id = 'textplain_rt_checkbox_' + ID ; 
    3160                 text_plain.type = "checkbox"; 
    3161                 text_plain.onclick = function () 
     3156                // changed to work in ie 
     3157                input_checkbox = document.createElement('input'); 
     3158                input_checkbox.setAttribute('class', 'checkbox'); 
     3159                input_checkbox.setAttribute('type', 'checkbox'); 
     3160                input_checkbox.setAttribute('tabIndex', '-1'); 
     3161                input_checkbox.setAttribute('id', 'textplain_rt_checkbox_' + ID); 
     3162 
     3163                input_checkbox.onclick = function () 
    31623164                { 
    31633165                        RichTextEditor.plain( this.checked ); 
    31643166                        document.getElementById( 'viewsource_rt_checkbox_' + ID ).parentNode.style.display = ( this.checked ) ? 'none' : ''; 
    31653167                }; 
     3168                text_plain.parentNode.appendChild(input_checkbox);  
    31663169        } 
    31673170 
Note: See TracChangeset for help on using the changeset viewer.