mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-30 06:30:23 +02:00
WIP framework's popup storage/restore:
- Keep tracking of popup's window object and restore it when needed - Implement a method to check an already opened popup and execute a method in the selected popup context - Fix vcard import into opened compose windows not working
This commit is contained in:
@ -270,6 +270,12 @@ egw.extend('utils', egw.MODULE_GLOBAL, function()
|
||||
*/
|
||||
storeWindow: function(appname, popup)
|
||||
{
|
||||
if (popup.opener) popup.opener.framework.popups_garbage_collector();
|
||||
if (popup.opener && popup.opener.framework && egw.is_popup(popup)
|
||||
&& typeof popup.opener.framework.popup_idx(popup) == 'undefined')
|
||||
{
|
||||
popup.opener.framework.popups.push(popup);
|
||||
}
|
||||
// Don't store if it has no name
|
||||
if(!popup.name || ['_blank'].indexOf(popup.name) >= 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user