mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fixed IE(8) javascript error: "null" is null or not an object
This commit is contained in:
parent
dea01bdb8b
commit
af75f60ff4
@ -273,7 +273,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-zA-Z0-9_]+/,''); // IE fails, if name contains eg. a dash (-)
|
||||
if (is_ie) _windowName = !_windowName ? '_blank' : _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 +
|
||||
|
Loading…
Reference in New Issue
Block a user