X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fpart_selection.js;h=9fd565723935dc3b5b04a021d2972c1e5550d86d;hb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44;hp=5e5ff80a61429f168aef88b59eef075fc16af9f5;hpb=94f3406dd6f85ad4c5ac33d6995c438630c2c028;p=kivitendo-erp.git diff --git a/js/part_selection.js b/js/part_selection.js index 5e5ff80a6..9fd565723 100644 --- a/js/part_selection.js +++ b/js/part_selection.js @@ -12,7 +12,7 @@ function part_selection_window(input_partnumber, input_description, input_partsi input_partnotes = input_partnumber; input_partnotes = input_partnotes.replace(/partnumber/, "partnotes"); if (input_partnotes == input_partnumber) - input_partnoes = ""; + input_partnotes = ""; } if (filter) @@ -24,16 +24,17 @@ function part_selection_window(input_partnumber, input_description, input_partsi options = ""; url = "common.pl?" + + "INPUT_ENCODING=UTF-8&" + "action=part_selection_internal&" + - "partnumber=" + escape_more(partnumber) + "&" + - "description=" + escape_more(description) + "&" + - "input_partnumber=" + escape_more(input_partnumber) + "&" + - "input_description=" + escape_more(input_description) + "&" + - "input_partsid=" + escape_more(input_partsid) + "&" + - "input_partnotes=" + escape_more(input_partnotes) + "&" + - "filter=" + escape_more(filter) + "&" + - "options=" + escape_more(options) + "&" + - "formname=" + escape_more(formname) + "&" + + "partnumber=" + encodeURIComponent(partnumber) + "&" + + "description=" + encodeURIComponent(description) + "&" + + "input_partnumber=" + encodeURIComponent(input_partnumber) + "&" + + "input_description=" + encodeURIComponent(input_description) + "&" + + "input_partsid=" + encodeURIComponent(input_partsid) + "&" + + "input_partnotes=" + encodeURIComponent(input_partnotes) + "&" + + "filter=" + encodeURIComponent(filter) + "&" + + "options=" + encodeURIComponent(options) + "&" + + "formname=" + encodeURIComponent(formname) + "&" + "allow_creation=" + (allow_creation ? "1" : "0") + "&" + "action_on_part_selected=" + (null == action_on_part_selected ? "" : action_on_part_selected.value); //alert(url);