X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fdunning.js;h=9a794a985cf37c353e95e7395e61cb79b836464a;hb=43816cb7289ee9225c3bb229d077bd87a75562cc;hp=2639ab84de95baeadc0fb267dddef926b61cf704;hpb=54e4131e091831e00a861fe2c4f53e344b87ddca;p=kivitendo-erp.git diff --git a/js/dunning.js b/js/dunning.js index 2639ab84d..9a794a985 100644 --- a/js/dunning.js +++ b/js/dunning.js @@ -1,15 +1,13 @@ function set_email_window(input_subject, input_body, input_attachment) { - var parm = centerParms(600,500) + ",width=600,height=500,status=yes,scrollbars=yes"; + var parm = centerParms(800,600) + ",width=800,height=600,status=yes,scrollbars=yes"; var url = "dn.pl?" + + "INPUT_ENCODING=UTF-8&" + "action=set_email&" + - "login=" + encodeURIComponent(document.getElementsByName("login")[0].value)+ "&"+ - "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" + - "path=" + encodeURIComponent(document.getElementsByName("path")[0].value) + "&" + - "email_subject=" + escape(document.getElementsByName(input_subject)[0].value) + "&" + - "email_body=" + escape(document.getElementsByName(input_body)[0].value) + "&" + - "email_attachment=" + escape(document.getElementsByName(input_attachment)[0].value) + "&" + - "input_subject=" + escape(input_subject) + "&" + - "input_body=" + escape(input_body) + "&" + - "input_attachment=" + escape(input_attachment); + "email_subject=" + encodeURIComponent(document.getElementsByName(input_subject)[0].value) + "&" + + "email_body=" + encodeURIComponent(document.getElementsByName(input_body)[0].value) + "&" + + "email_attachment=" + encodeURIComponent(document.getElementsByName(input_attachment)[0].value) + "&" + + "input_subject=" + encodeURIComponent(input_subject) + "&" + + "input_body=" + encodeURIComponent(input_body) + "&" + + "input_attachment=" + encodeURIComponent(input_attachment); window.open(url, "_new_generic", parm); }