Changeset 4258 for branches/2.2.0.1/expressoMail1_2/js/main.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/main.js
r4252 r4258 1659 1659 textArea.name = "body"; 1660 1660 body = document.getElementById("body_"+ID); 1661 textArea.value += ( ( mail_as_plain ) ? body.previousSibling.value : ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) );1661 textArea.value = ( ( mail_as_plain ) ? body.previousSibling.value : ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) ); 1662 1662 var input_folder = document.createElement("INPUT"); 1663 1663 input_folder.style.display='none'; … … 1903 1903 withImage = false; 1904 1904 1905 var rt_checkbox = Element('viewsource_rt_checkbox_' + ID);1905 var rt_checkbox = Element('viewsource_rt_checkbox_' + border_id); 1906 1906 if (rt_checkbox == null) 1907 1907 return false; … … 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 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 1932 1935 var textArea = document.createElement("TEXTAREA"); 1933 1936 textArea.style.display='none'; … … 1936 1939 if (! body) 1937 1940 return; 1938 textArea.value += '<body>\r\n'; 1939 textArea.value += body.contentWindow.document.body.innerHTML; 1940 textArea.value += '\r\n</body>'; 1941 textArea.value = ( ( mail_as_plain ) ? body.previousSibling.value : ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) ); 1941 1942 var input_folder = document.createElement("INPUT"); 1942 1943 input_folder.style.display='none'; … … 1964 1965 form.appendChild(input_msgid); 1965 1966 form.appendChild(input_insertImg); 1967 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'; 1966 1972 1967 1973 cExecuteForm ("$this.imap_functions.save_msg", form, handler_save_msg,border_id);
Note: See TracChangeset
for help on using the changeset viewer.