From df3c13f7614aeaec05258265aba032599a6c20f1 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 8 May 2012 12:17:26 +0530 Subject: [PATCH] fix in form email --- js/all-app.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/js/all-app.js b/js/all-app.js index 8838d196e1..68206443da 100644 --- a/js/all-app.js +++ b/js/all-app.js @@ -2083,12 +2083,8 @@ this.prepare_col_heads(this.flist);var table=me.make_print_table(this.flist);thi _e.email_as_field='email_id';_e.email_as_dt='Contact';_e.email_as_in='email_id,contact_name';sendmail=function(emailto,emailfrom,cc,subject,message,fmt,with_attachments){var fn=function(html){$c('webnotes.utils.email_lib.send_form',{'sendto':emailto,'sendfrom':emailfrom?emailfrom:'','cc':cc?cc:'','subject':subject,'message':replace_newlines(message),'body':html,'full_domain':wn.urllib.get_base_url(),'with_attachments':with_attachments?1:0,'dt':cur_frm.doctype,'dn':cur_frm.docname},function(r,rtxt){});} _p.build(fmt,fn);} _e.make=function(){var d=new Dialog(440,440,"Send Email");var email_go=function(){var emailfrom=d.widgets['From'].value;var emailto=d.widgets['To'].value;if(!emailfrom) -emailfrom=user_email;emailto=emailto.replace(/ /g,"") -var email_list=emailto.split(/[,|;]/);var valid=1;console.log(email_list) -for(var i=0;i