From: Thomas Kasulke Date: Tue, 20 Feb 2007 10:48:43 +0000 (+0000) Subject: Historie eingefügt X-Git-Tag: release-2.4.2~62 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4498437ef6a51fe1cd58c34501ee7cc100505e89;p=kivitendo-erp.git Historie eingefügt --- diff --git a/js/show_history.js b/js/show_history.js new file mode 100644 index 000000000..bf8471ed8 --- /dev/null +++ b/js/show_history.js @@ -0,0 +1,24 @@ +function centerParms(width,height,extra) { + xPos = (screen.width - width) / 2; + yPos = (screen.height - height) / 2; + + string = "left=" + xPos + ",top=" + yPos; + + if (extra) + string += "width=" + width + ",height=" + height; + + 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) + "&" + window.open(url, "_new_generic", parm); +} \ No newline at end of file