Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
core.mailer: Make sure to add a typed email to the list of "to", if p…
Browse files Browse the repository at this point in the history
…eople don't explicitely click on the auto-complete list.

(cherry picked from commit 9581bf0)
  • Loading branch information
cdujeu committed Oct 17, 2014
1 parent 5c58d3f commit b566e23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/plugins/core.mailer/class.AjxpMailer.js
Expand Up @@ -100,11 +100,14 @@ Class.create("AjxpMailer", {
}
);


return $("mailer_message");
},

postEmail : function(){
var toField = this._mailerPane.down('#tofield');
if(toField.getValue()){
this.selectedLoginToSpan( toField.getValue(), toField.getValue() , false);
}
var params = $H({get_action:"send_mail"});
this._mailerPane.down("form").getElements().each(function(el){
params.set(el.name, el.getValue());
Expand Down

0 comments on commit b566e23

Please sign in to comment.