Changeset 4282
- Timestamp:
- 05/09/11 14:22:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/expressoMail1_2/js/main.js
r4281 r4282 1929 1929 message_id = openTab.imapUid[border_id]; 1930 1930 var handler_save_msg = function(data){ return_save(data,this.tmp_border_id,this.tmp_folder_name,this.tmp_folder_id,this.message_id); } 1931 1932 var mail_as_plain = document.getElementById( 'textplain_rt_checkbox_' + border_id ); 1933 mail_as_plain = ( mail_as_plain ) ? mail_as_plain.checked : false; 1931 1932 var mail_as_plain = document.getElementById( 'textplain_rt_checkbox_' + border_id ); 1933 mail_as_plain = ( mail_as_plain ) ? mail_as_plain.checked : false; 1934 1934 1935 1935 var textArea = document.createElement("TEXTAREA"); … … 1939 1939 if (! body) 1940 1940 return; 1941 textArea.value = ( ( mail_as_plain ) ? body.previousSibling.value : ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) ); 1941 1942 textArea.value = ( ( mail_as_plain ) ? body.previousSibling.value : ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) ); 1942 1943 var input_folder = document.createElement("INPUT"); 1943 1944 input_folder.style.display='none'; … … 1966 1967 form.appendChild(input_insertImg); 1967 1968 1968 var mail_type = form.appendChild( document.createElement( 'input' ) ); 1969 mail_type.name = 'type'; 1970 mail_type.type = 'hidden'; 1971 mail_type.value = ( mail_as_plain ) ? 'plain' : 'html'; 1972 1969 var mail_type = form.appendChild( document.createElement( 'input' ) ); 1970 mail_type.name = 'type'; 1971 mail_type.type = 'hidden'; 1972 mail_type.value = ( mail_as_plain ) ? 'plain' : 'html'; 1973 1973 1974 cExecuteForm ("$this.imap_functions.save_msg", form, handler_save_msg,border_id); 1974 1975 }
Note: See TracChangeset
for help on using the changeset viewer.