removed email model code from send email

This commit is contained in:
Tankred Hase 2013-06-06 21:44:54 +02:00
parent c9522fcb5e
commit 9842a060ad
1 changed files with 3 additions and 3 deletions

View File

@ -104,16 +104,16 @@
var signature = '\n\nSent with whiteout mail - get your free mailbox for end-2-end encrypted messaging!\nhttps://mail.whiteout.io';
var email = new app.model.Email({
var email = {
from: self.account,
to: to,
subject: page.find('#subjectInput').val(),
body: page.find('#bodyTextarea').val() + signature
});
};
// post message to main window
app.util.postMessage('sendEmail', {
email: email.toJSON()
email: email
}, function(resArgs) {
var err = resArgs.err;