X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fshow_history.js;h=6985c69415066ea9cf3bd8a06c62cd04cd172000;hb=c25c69bca6ac3906c4fc9932fee862649eb47c85;hp=137e2193e505ffd23a90f4ad1862b6f65f535371;hpb=d629acd82a27e980899a044ca8b0f4becc8e94bb;p=kivitendo-erp.git diff --git a/js/show_history.js b/js/show_history.js index 137e2193e..6985c6941 100644 --- a/js/show_history.js +++ b/js/show_history.js @@ -10,14 +10,14 @@ function centerParms(width,height,extra) { return string; } -function set_history_window(id) { +function set_history_window(id,trans_id_type) { var parm = centerParms(800,500) + ",width=800,height=500,status=yes,scrollbars=yes"; var name = "History"; url = "common.pl?" + + "INPUT_ENCODING=UTF-8&" + "action=show_history&" + - "login=" + encodeURIComponent(document.getElementsByName("login")[0].value)+ "&"+ - "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" + "longdescription=" + "&" + - "input_name=" + escape(id) + "&" + "trans_id_type=" + encodeURIComponent(trans_id_type) + "&" + + "input_name=" + encodeURIComponent(id) + "&" window.open(url, "_new_generic", parm); }