mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 10:51:38 +01:00
IE fails, if windows name in egw_openWindowCentered2 contains something no a letter, number or underscore --> removing it
This commit is contained in:
parent
066270db32
commit
9da1ddf87b
@ -86,6 +86,8 @@ function egw_openWindowCentered2(_url, _windowName, _width, _height, _status, _a
|
|||||||
positionLeft = (windowWidth/2)-(_width/2)+egw_getWindowLeft();
|
positionLeft = (windowWidth/2)-(_width/2)+egw_getWindowLeft();
|
||||||
positionTop = (windowHeight/2)-(_height/2)+egw_getWindowTop();
|
positionTop = (windowHeight/2)-(_height/2)+egw_getWindowTop();
|
||||||
|
|
||||||
|
if (is_ie) _windowName = _windowName.replace(/[^a-z0-9_]+/,''); // IE fails, if name contains eg. a dash (-)
|
||||||
|
|
||||||
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="+_status);
|
",location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes,status="+_status);
|
||||||
|
Loading…
Reference in New Issue
Block a user