X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fshow_history.js;h=6985c69415066ea9cf3bd8a06c62cd04cd172000;hb=540867317f60c7344f3e99bf77ea723d33e71dee;hp=bf8471ed8b379ecce34a1194ec143fb26d6ef3ec;hpb=4498437ef6a51fe1cd58c34501ee7cc100505e89;p=kivitendo-erp.git diff --git a/js/show_history.js b/js/show_history.js index bf8471ed8..6985c6941 100644 --- a/js/show_history.js +++ b/js/show_history.js @@ -10,15 +10,14 @@ function centerParms(width,height,extra) { return string; } -function set_history_window(id) { - var parm = centerParms(600,500) + ",width=600,height=500,status=yes,scrollbars=yes"; +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) + "&" + - "path=" + encodeURIComponent(document.getElementsByName("path")[0].value) + "&" + "longdescription=" + "&" + - "input_name=" + escape(id) + "&" + "trans_id_type=" + encodeURIComponent(trans_id_type) + "&" + + "input_name=" + encodeURIComponent(id) + "&" window.open(url, "_new_generic", parm); -} \ No newline at end of file +}