Changeset 4252 for branches/2.2.0.1/expressoMail1_2/js/draw_api.js
- Timestamp:
- 05/06/11 16:17:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/expressoMail1_2/js/draw_api.js
r4197 r4252 2619 2619 2620 2620 tr_menu_new_message.appendChild(td_menu_new_message); 2621 2622 if ( ! expresso_offline ) 2623 { 2624 var text_plain = td_menu_new_message.appendChild( 2625 document.createElement( 'span' ) 2626 ).appendChild( 2627 document.createTextNode( ' | ' ) 2628 ).parentNode.appendChild( 2629 document.createElement( 'input' ) 2630 ).parentNode.appendChild( 2631 document.createTextNode( get_lang('Send this mail as text plain') + '.') 2632 ).previousSibling; 2633 text_plain.setAttribute( 'tabIndex', '-1' ); 2634 text_plain.id = 'textplain_rt_checkbox_' + ID ; 2635 text_plain.type = "checkbox"; 2636 text_plain.onclick = function () 2637 { 2638 RichTextEditor.plain( ( ! this.checked ) ? this.checked : mobile_device || ( this.checked = confirm( 'The text format will be lost.' ) ) ); 2639 document.getElementById( 'viewsource_rt_checkbox_' + ID ).parentNode.style.display = ( this.checked ) ? 'none' : ''; 2640 }; 2641 } 2642 2621 2643 tbody_menu_new_message.appendChild(tr_menu_new_message); 2622 2644 table_menu_new_message.appendChild(tbody_menu_new_message); … … 3225 3247 draw_from_field(sel_from,tr1_1); 3226 3248 resizeWindow(); 3249 3250 if ( ! expresso_offline ) 3251 { 3252 if ( mobile_device ) 3253 { 3254 text_plain.click( ); 3255 text_plain.parentNode.style.display = 'none'; 3256 } 3257 } 3258 3227 3259 return ID; 3228 3260 }
Note: See TracChangeset
for help on using the changeset viewer.