Historie eingefügt
authorThomas Kasulke <t.kasulke@linet-services.de>
Tue, 20 Feb 2007 10:48:43 +0000 (10:48 +0000)
committerThomas Kasulke <t.kasulke@linet-services.de>
Tue, 20 Feb 2007 10:48:43 +0000 (10:48 +0000)
js/show_history.js [new file with mode: 0644]

diff --git a/js/show_history.js b/js/show_history.js
new file mode 100644 (file)
index 0000000..bf8471e
--- /dev/null
@@ -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