Fix tracking of opened popups not working after framework reload

This commit is contained in:
Hadi Nategh
2018-03-12 17:04:17 +01:00
parent c2c1bdb6ad
commit 2d71cdf0f5
3 changed files with 6 additions and 35 deletions

View File

@ -224,6 +224,10 @@
{
// Timeout is 5 seconds, but it iks only applied(egw_utils) when something asks for the window list
window.setInterval(function() {
if (window.opener && window.opener.framework && typeof window.opener.framework.popup_idx(window) == 'undefined')
{
window.opener.framework.popups.push(window);
}
egw().storeWindow(this.egw_appName, this);
}, 2000);
}