allow upper case window names too

This commit is contained in:
Klaus Leithoff 2010-11-22 14:47:10 +00:00
parent a419a61117
commit 6476c7af39

View File

@ -178,7 +178,7 @@ function egw_openWindowCentered2(_url, _windowName, _width, _height, _status, _a
positionLeft = (windowWidth/2)-(_width/2)+egw_getWindowLeft();
positionTop = (windowHeight/2)-(_height/2)+egw_getWindowTop();
if (is_ie) _windowName = _windowName.replace(/[^a-z0-9_]+/,''); // IE fails, if name contains eg. a dash (-)
if (is_ie) _windowName = _windowName.replace(/[^a-zA-Z0-9_]+/,''); // IE fails, if name contains eg. a dash (-)
windowID = window.open(_url, _windowName, "width=" + _width + ",height=" + _height +
",screenX=" + positionLeft + ",left=" + positionLeft + ",screenY=" + positionTop + ",top=" + positionTop +