Changeset 4301 for sandbox/2.2.0.2/expressoMail1_2/js/main.js
- Timestamp:
- 05/10/11 10:31:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/expressoMail1_2/js/main.js
r4291 r4301 1674 1674 body = document.getElementById("body_"+ID); 1675 1675 1676 textArea.value += ( ( mail_as_plain ) ? body.previousSibling.value : ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) );1676 textArea.value = ( ( mail_as_plain ) ? body.previousSibling.value : ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) ); 1677 1677 1678 1678 var input_folder = document.createElement("INPUT"); … … 1920 1920 withImage = false; 1921 1921 1922 var rt_checkbox = Element('viewsource_rt_checkbox_' + ID);1922 var rt_checkbox = Element('viewsource_rt_checkbox_' + border_id); 1923 1923 if (rt_checkbox == null) 1924 1924 return false; … … 1947 1947 var handler_save_msg = function(data){ return_save(data,this.tmp_border_id,this.tmp_folder_name,this.tmp_folder_id,this.message_id); } 1948 1948 1949 var mail_as_plain = document.getElementById( 'textplain_rt_checkbox_' + border_id ); 1950 mail_as_plain = ( mail_as_plain ) ? mail_as_plain.checked : false; 1951 1949 1952 var textArea = document.createElement("TEXTAREA"); 1950 1953 textArea.style.display='none'; … … 1953 1956 if (! body) 1954 1957 return; 1955 textArea.value += '<body>\r\n';1956 textArea.value += body.contentWindow.document.body.innerHTML;1957 textArea.value += '\r\n</body>';1958 1959 textArea.value = ( ( mail_as_plain ) ? body.previousSibling.value : ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) ); 1960 1958 1961 var input_folder = document.createElement("INPUT"); 1959 1962 input_folder.style.display='none'; … … 1982 1985 form.appendChild(input_insertImg); 1983 1986 1987 var mail_type = form.appendChild( document.createElement( 'input' ) ); 1988 mail_type.name = 'type'; 1989 mail_type.type = 'hidden'; 1990 mail_type.value = ( mail_as_plain ) ? 'plain' : 'html'; 1991 1984 1992 cExecuteForm ("$this.imap_functions.save_msg", form, handler_save_msg,border_id); 1985 1993 }
Note: See TracChangeset
for help on using the changeset viewer.