mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 20:11:23 +02:00
track top EGroupware window in egw object to be used as egw.top instead of window.top, which can throw a security exception
This commit is contained in:
@@ -145,6 +145,11 @@
|
||||
webserverUrl: egw_webserverUrl
|
||||
};
|
||||
}
|
||||
// set top window in egw object
|
||||
if (typeof window.egw.top === "undefined")
|
||||
{
|
||||
window.egw.top = window;
|
||||
}
|
||||
|
||||
// focus window / call window.focus(), if data-window-focus is specified
|
||||
var window_focus = egw_script.getAttribute('data-window-focus');
|
||||
|
Reference in New Issue
Block a user