X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fcustomer_or_vendor_selection.js;h=b09183f7c0d0540aa12a4f4323574f4d78ce1e69;hb=55a2b610c7f5414345ac09e11afb9ac1120e51c7;hp=1be1c716c2b1a58c5dd9790f657a41387f8fb054;hpb=5b22b6b5b7dbb290048cd15b3ede7d18cba4d09c;p=kivitendo-erp.git diff --git a/js/customer_or_vendor_selection.js b/js/customer_or_vendor_selection.js index 1be1c716c..b09183f7c 100644 --- a/js/customer_or_vendor_selection.js +++ b/js/customer_or_vendor_selection.js @@ -2,13 +2,14 @@ function customer_or_vendor_selection_window(input_name, input_id, is_vendor, al var parm = centerParms(800,600) + ",width=800,height=600,status=yes,scrollbars=yes"; var name = document.getElementsByName(input_name)[0].value; url = "common.pl?" + + "INPUT_ENCODING=UTF-8&" + "action=cov_selection_internal&" + - "name=" + escape_more(name) + "&" + - "input_name=" + escape(input_name) + "&" + - "input_id=" + escape(input_id) + "&" + + "name=" + encodeURIComponent(name) + "&" + + "input_name=" + encodeURIComponent(input_name) + "&" + + "input_id=" + encodeURIComponent(input_id) + "&" + "is_vendor=" + (is_vendor ? "1" : "0") + "&" + "allow_both=" + (allow_both ? "1" : "0") + "&" + - "action_on_cov_selected=" + (action_on_cov_selected ? escape(action_on_cov_selected) : "") + "action_on_cov_selected=" + (action_on_cov_selected ? encodeURIComponent(action_on_cov_selected) : "") //alert(url); window.open(url, "_new_cov_selection", parm); }