Changeset 4291 for sandbox/2.2.0.2/expressoMail1_2/js/draw_api.js
- Timestamp:
- 05/09/11 17:55:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/expressoMail1_2/js/draw_api.js
r4283 r4291 2615 2615 2616 2616 tr_menu_new_message.appendChild(td_menu_new_message); 2617 2618 if ( ! expresso_offline ) 2619 { 2620 var text_plain = td_menu_new_message.appendChild( 2621 document.createElement( 'span' ) 2622 ).appendChild( 2623 document.createTextNode( ' | ' ) 2624 ).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 () 2633 { 2634 RichTextEditor.plain( ( ! this.checked ) ? this.checked : mobile_device || ( this.checked = confirm( 'The text format will be lost.' ) ) ); 2635 document.getElementById( 'viewsource_rt_checkbox_' + ID ).parentNode.style.display = ( this.checked ) ? 'none' : ''; 2636 }; 2637 } 2638 2617 2639 tbody_menu_new_message.appendChild(tr_menu_new_message); 2618 2640 table_menu_new_message.appendChild(tbody_menu_new_message); … … 3221 3243 draw_from_field(sel_from,tr1_1); 3222 3244 resizeWindow(); 3245 3246 if ( ! expresso_offline ) 3247 { 3248 if ( mobile_device ) 3249 { 3250 text_plain.click( ); 3251 text_plain.parentNode.style.display = 'none'; 3252 } 3253 } 3254 3255 3223 3256 return ID; 3224 3257 }
Note: See TracChangeset
for help on using the changeset viewer.