Ignore:
Timestamp:
05/04/11 10:27:59 (13 years ago)
Author:
rodsouza
Message:

Ticket #1824 - Permitindo o envio de mail em texto puro.

File:
1 edited

Legend:

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

    r4136 r4202  
    22702270 
    22712271        tr_menu_new_message.appendChild(td_menu_new_message); 
     2272 
     2273        if ( ! expresso_offline ) 
     2274        { 
     2275                var text_plain = td_menu_new_message.appendChild( 
     2276                        document.createElement( 'span' ) 
     2277                ).appendChild( 
     2278                        document.createTextNode( ' | ' ) 
     2279                ).parentNode.appendChild( 
     2280                        document.createElement( 'input' ) 
     2281                ).parentNode.appendChild( 
     2282                        document.createTextNode( get_lang('Send this mail as text plain') + '.') 
     2283                ).previousSibling; 
     2284                text_plain.setAttribute( 'tabIndex', '-1' ); 
     2285                text_plain.id = 'textplain_rt_checkbox_' + ID ; 
     2286                text_plain.type = "checkbox"; 
     2287                text_plain.onclick = function () 
     2288                { 
     2289                        RichTextEditor.plain( ( ! this.checked ) ? this.checked : mobile_device || ( this.checked = confirm( 'The text format will be lost.' ) ) ); 
     2290                        document.getElementById( 'viewsource_rt_checkbox_' + ID ).parentNode.style.display = ( this.checked ) ? 'none' : ''; 
     2291                }; 
     2292        } 
     2293 
    22722294        tbody_menu_new_message.appendChild(tr_menu_new_message); 
    22732295        table_menu_new_message.appendChild(tbody_menu_new_message); 
     
    28662888                draw_from_field(sel_from,tr1_1); 
    28672889        resizeWindow(); 
     2890 
     2891        if ( ! expresso_offline ) 
     2892        { 
     2893                if ( mobile_device ) 
     2894                { 
     2895                        text_plain.click( ); 
     2896                        text_plain.parentNode.style.display = 'none'; 
     2897                } 
     2898        } 
     2899 
    28682900        return ID; 
    28692901} 
Note: See TracChangeset for help on using the changeset viewer.