From 8591e3ce8bbbd54b20a6da71ffbc770aa3f872a1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 24 Oct 2005 07:29:12 +0000 Subject: [PATCH] egw_openWindowCentered2, which allows to specify if you need a status-line or not --- phpgwapi/js/jsapi/jsapi.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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()