kivitendo/js/show_history.js @ 330cfa6d
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?" +
|
||||
"action=show_history&" +
|
||||
"longdescription=" + "&" +
|
||||
"input_name=" + escape(id) + "&"
|
||||
window.open(url, "_new_generic", parm);
|
||||
d629acd8 | Sven Schöling | }
|