Changeset 4382 for trunk


Ignore:
Timestamp:
05/12/11 16:20:46 (13 years ago)
Author:
niltonneto
Message:

Ticket #1838 - expressoMail1_2 - Funcionamento do checkbox para e-mail somente texto.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/draw_api.js

    r4374 r4382  
    27942794                ).parentNode.appendChild( 
    27952795                        document.createTextNode( get_lang('Send this mail as text plain') + '.') 
    2796                 ).parentNode.appendChild( 
    2797                         document.createElement( 'input' ) 
    27982796                ); 
    2799                 text_plain.setAttribute( 'tabIndex', '-1' ); 
    2800                 text_plain.id = 'textplain_rt_checkbox_' + ID ; 
    2801                 text_plain.type = "checkbox"; 
    2802                 text_plain.onclick = function () 
     2797                // changed to work in ie 
     2798                input_checkbox = document.createElement('input'); 
     2799                input_checkbox.setAttribute('class', 'checkbox'); 
     2800                input_checkbox.setAttribute('type', 'checkbox'); 
     2801                input_checkbox.setAttribute('tabIndex', '-1'); 
     2802                input_checkbox.setAttribute('id', 'textplain_rt_checkbox_' + ID); 
     2803 
     2804                input_checkbox.onclick = function () 
    28032805                { 
    28042806                        RichTextEditor.plain( this.checked ); 
    28052807                        document.getElementById( 'viewsource_rt_checkbox_' + ID ).parentNode.style.display = ( this.checked ) ? 'none' : ''; 
    28062808                }; 
     2809 
     2810                text_plain.parentNode.appendChild(input_checkbox);  
    28072811        } 
    28082812 
Note: See TracChangeset for help on using the changeset viewer.