diff --git a/phpgwapi/js/jsapi/jsapi.js b/phpgwapi/js/jsapi/jsapi.js index fed550aca8..92e968290c 100644 --- a/phpgwapi/js/jsapi/jsapi.js +++ b/phpgwapi/js/jsapi/jsapi.js @@ -521,7 +521,7 @@ function showMessage(msg, type) } // 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(); windowHeight = egw_getWindowOuterHeight(); @@ -531,10 +531,14 @@ function egw_openWindowCentered(_url, _windowName, _width, _height) windowID = window.open(_url, _windowName, "width=" + _width + ",height=" + _height + ",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; } +function egw_openWindowCentered(_url, _windowName, _width, _height, _status) +{ + return egw_openWindowCentered2(_url, _windowName, _width, _height, 'no'); +} // return the left position of the window function egw_getWindowLeft()