kivitendo/js/show_history.js @ 8486efb7
4498437e | Thomas Kasulke | 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) {
|
||||
a298090f | Moritz Bunkus | var parm = centerParms(800,500) + ",width=800,height=500,status=yes,scrollbars=yes";
|
||
4498437e | Thomas Kasulke | var name = "History";
|
||
url = "common.pl?" +
|
||||
5d557254 | Moritz Bunkus | "INPUT_ENCODING=UTF-8&" +
|
||
4498437e | Thomas Kasulke | "action=show_history&" +
|
||
"longdescription=" + "&" +
|
||||
6b063f3c | Moritz Bunkus | "input_name=" + encodeURIComponent(id) + "&"
|
||
4498437e | Thomas Kasulke | window.open(url, "_new_generic", parm);
|
||
d629acd8 | Sven Schöling | }
|