handle problem experienced with sending, when previously saved as draft manually; make sure we reset the saveAsDraft hidden value

This commit is contained in:
Klaus Leithoff 2012-11-28 13:53:01 +00:00
parent 80b0765fb5
commit 0ab1bbac8d

View File

@ -784,6 +784,7 @@ function fm_compose_sendEMail() {
if(addressSet == true && subjectSet == true && doubleCheck == false) {
// if we submit the form, we do not want to execute the onunload stuff
justSavedAsDraftManually = false;
document.getElementById('saveAsDraft').value=0;
do_onunload=false;
document.doit.submit();
return true;