egw_openWindowCentered2, which allows to specify if you need a status-line or not

This commit is contained in:
Ralf Becker
2005-10-24 07:29:12 +00:00
parent 2f4259dfd0
commit 8591e3ce8b

View File

@@ -521,7 +521,7 @@ function showMessage(msg, type)
} }
// works only correctly in Mozilla/FF and Konqueror // works only correctly in Mozilla/FF and Konqueror
function egw_openWindowCentered(_url, _windowName, _width, _height) function egw_openWindowCentered2(_url, _windowName, _width, _height, _status)
{ {
windowWidth = egw_getWindowOuterWidth(); windowWidth = egw_getWindowOuterWidth();
windowHeight = egw_getWindowOuterHeight(); windowHeight = egw_getWindowOuterHeight();
@@ -531,10 +531,14 @@ function egw_openWindowCentered(_url, _windowName, _width, _height)
windowID = window.open(_url, _windowName, "width=" + _width + ",height=" + _height + windowID = window.open(_url, _windowName, "width=" + _width + ",height=" + _height +
",screenX=" + positionLeft + ",left=" + positionLeft + ",screenY=" + positionTop + ",top=" + positionTop + ",screenX=" + positionLeft + ",left=" + positionLeft + ",screenY=" + positionTop + ",top=" + positionTop +
",location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes,status=no"); ",location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes,status="+_status);
return windowID; return windowID;
} }
function egw_openWindowCentered(_url, _windowName, _width, _height, _status)
{
return egw_openWindowCentered2(_url, _windowName, _width, _height, 'no');
}
// return the left position of the window // return the left position of the window
function egw_getWindowLeft() function egw_getWindowLeft()