From 4498437ef6a51fe1cd58c34501ee7cc100505e89 Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Tue, 20 Feb 2007 10:48:43 +0000 Subject: [PATCH] =?utf8?q?Historie=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/show_history.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 js/show_history.js 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 -- 2.20.1