Changeset 4258 for branches/2.2.0.1/expressoMail1_2/js/draw_api.js
- Timestamp:
- 05/06/11 17:01:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/expressoMail1_2/js/draw_api.js
r4253 r4258 2616 2616 2617 2617 tr_menu_new_message.appendChild(td_menu_new_message); 2618 2619 if ( ! expresso_offline )2620 {2621 var text_plain = td_menu_new_message.appendChild(2622 document.createElement( 'span' )2623 ).appendChild(2624 document.createTextNode( ' | ' )2625 ).parentNode.appendChild(2626 document.createElement( 'input' )2627 ).parentNode.appendChild(2628 document.createTextNode( get_lang('Send this mail as text plain') + '.')2629 ).previousSibling;2630 text_plain.setAttribute( 'tabIndex', '-1' );2631 text_plain.id = 'textplain_rt_checkbox_' + ID ;2632 text_plain.type = "checkbox";2633 text_plain.onclick = function ()2634 {2635 RichTextEditor.plain( ( ! this.checked ) ? this.checked : mobile_device || ( this.checked = confirm( 'The text format will be lost.' ) ) );2636 document.getElementById( 'viewsource_rt_checkbox_' + ID ).parentNode.style.display = ( this.checked ) ? 'none' : '';2637 };2638 }2639 2618 2640 2619 tbody_menu_new_message.appendChild(tr_menu_new_message); … … 3165 3144 tr5.appendChild(td5); 3166 3145 tr5.appendChild(td_return_receipt); 3146 3147 if ( ! expresso_offline ) 3148 { 3149 var text_plain = td_return_receipt.appendChild( 3150 document.createElement( 'span' ) 3151 ).appendChild( 3152 document.createTextNode( ' | ' ) 3153 ).parentNode.appendChild( 3154 document.createTextNode( get_lang('Send this mail as text plain') + '.') 3155 ).parentNode.appendChild( 3156 document.createElement( 'input' ) 3157 ); 3158 text_plain.setAttribute( 'tabIndex', '-1' ); 3159 text_plain.id = 'textplain_rt_checkbox_' + ID ; 3160 text_plain.type = "checkbox"; 3161 text_plain.onclick = function () 3162 { 3163 RichTextEditor.plain( this.checked ); 3164 document.getElementById( 'viewsource_rt_checkbox_' + ID ).parentNode.style.display = ( this.checked ) ? 'none' : ''; 3165 }; 3166 } 3167 3167 3168 tbody_message.appendChild(tr5); 3168 3169 if (parseInt(preferences.use_important_flag))
Note: See TracChangeset
for help on using the changeset viewer.