Changeset 4366 for trunk/expressoMail1_2/js/draw_api.js
- Timestamp:
- 05/12/11 15:40:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r4151 r4366 2270 2270 2271 2271 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 2272 2294 tbody_menu_new_message.appendChild(tr_menu_new_message); 2273 2295 table_menu_new_message.appendChild(tbody_menu_new_message); … … 2866 2888 draw_from_field(sel_from,tr1_1); 2867 2889 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 2868 2900 return ID; 2869 2901 }
Note: See TracChangeset
for help on using the changeset viewer.