Fix to avoid sending an email multiple times in the web mail module.

Monotone-Parent: fd2a831a40563980f8889d293cab958e0d907a0b
Monotone-Revision: fb2522bcdcf167e7ba3e95a03948f9bfad2b7870

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-09-02T01:24:51
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Francis Lachapelle 2009-09-02 01:24:51 +00:00
parent 4388c925bb
commit 484e4b605f
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@
</ul>
</div>
<form const:href="send" name="pageform" enctype="multipart/form-data" autocomplete="off">
<form const:href="" name="pageform" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="priority" id="priority"
var:value="priority"/>

View File

@ -125,8 +125,8 @@ function validateEditorInput(sender) {
return true;
}
function clickedEditorSend(sender) {
if (!validateEditorInput(sender))
function clickedEditorSend(sender) { log (document.pageform.action);
if (document.pageform.action || !validateEditorInput(sender))
return false;
var input = currentAttachmentInput();