X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fshow_history.js;h=a61e21dabe6f2f932021d5375974b367ea5fb4c0;hb=15aab04c1710b3c8a2bf8785aef31f13a958a43e;hp=bf8471ed8b379ecce34a1194ec143fb26d6ef3ec;hpb=4498437ef6a51fe1cd58c34501ee7cc100505e89;p=kivitendo-erp.git diff --git a/js/show_history.js b/js/show_history.js index bf8471ed8..a61e21dab 100644 --- a/js/show_history.js +++ b/js/show_history.js @@ -10,15 +10,18 @@ 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"; - var name = "History"; - url = "common.pl?" + - "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) + "&" +function set_history_window(id,trans_id_type, snumbers, what_done) { + var parm = centerParms(1100,500) + ",width=1100,height=500,status=yes,scrollbars=yes"; + var url = "common.pl?action=show_history&INPUT_ENCODING=UTF-8&"; + + if (trans_id_type) + url += "&trans_id_type=" + encodeURIComponent(trans_id_type); + if (snumbers) + url += "&s_numbers=" + encodeURIComponent(snumbers); + if (what_done) + url += "&what_done=" + encodeURIComponent(what_done); + if (id) + url += "&input_name=" + encodeURIComponent(id); + window.open(url, "_new_generic", parm); -} \ No newline at end of file +}