Changeset 4298


Ignore:
Timestamp:
05/10/11 09:30:13 (13 years ago)
Author:
airton
Message:

Ticket #1820 - Funcionamento do checkbox para e-mail somente texto - r4266

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/expressoMail1_2/js/draw_api.js

    r4291 r4298  
    26232623                        document.createTextNode( ' | ' ) 
    26242624                ).parentNode.appendChild( 
    2625                         document.createElement( 'input' ) 
    2626                 ).parentNode.appendChild( 
    2627                         document.createTextNode( get_lang('Send this mail as text plain') + '.') 
    2628                 ).previousSibling; 
    2629                 text_plain.setAttribute( 'tabIndex', '-1' ); 
    2630                 text_plain.id = 'textplain_rt_checkbox_' + ID ; 
    2631                 text_plain.type = "checkbox"; 
    2632                 text_plain.onclick = function () 
     2625                        document.createTextNode( get_lang('Send this mail as text plain') + '.')  
     2626                ); 
     2627                                // changed to work in ie  
     2628                                input_checkbox = document.createElement('input');  
     2629                    input_checkbox.setAttribute('class', 'checkbox');  
     2630                    input_checkbox.setAttribute('type', 'checkbox');  
     2631                    input_checkbox.setAttribute('tabIndex', '-1');  
     2632                    input_checkbox.setAttribute('id', 'textplain_rt_checkbox_' + ID);  
     2633                 
     2634                                 
     2635                                input_checkbox.onclick = function () 
    26332636                { 
    26342637                        RichTextEditor.plain( ( ! this.checked ) ? this.checked : mobile_device || ( this.checked = confirm( 'The text format will be lost.' ) ) ); 
    26352638                        document.getElementById( 'viewsource_rt_checkbox_' + ID ).parentNode.style.display = ( this.checked ) ? 'none' : ''; 
    26362639                }; 
     2640                                text_plain.parentNode.appendChild(input_checkbox);  
    26372641        } 
    26382642         
Note: See TracChangeset for help on using the changeset viewer.