mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Admin: App refresh now refreshes admin nextmatches again
This commit is contained in:
parent
2659a8ab63
commit
85cc58b32b
@ -253,9 +253,9 @@ class AdminApp extends EgwApp
|
||||
if(iframe_node && iframe_node.contentWindow && iframe_node.contentWindow.etemplate2)
|
||||
{
|
||||
var templates = iframe_node.contentWindow.etemplate2.getByApplication('admin');
|
||||
for(var i = 0; i < templates.length; i++)
|
||||
for(let i = 0; i < templates.length; i++)
|
||||
{
|
||||
templates[i].refresh(_msg,_app,_id,_type);
|
||||
templates[i].refresh(_msg, _app, _id, _type);
|
||||
refresh_done = true;
|
||||
}
|
||||
}
|
||||
@ -267,6 +267,21 @@ class AdminApp extends EgwApp
|
||||
}
|
||||
else
|
||||
{
|
||||
// No iframe, but if there's a nm in the current view, refresh it
|
||||
let et2s = etemplate2.getByApplication('admin');
|
||||
for(let i = 0; i < et2s.length; i++)
|
||||
{
|
||||
let nm = <et2_nextmatch>et2s[i].widgetContainer.getWidgetById('nm');
|
||||
if(nm)
|
||||
{
|
||||
nm.refresh(undefined, undefined);
|
||||
}
|
||||
}
|
||||
// Get group list too, if visible, since it wasn't found in the loop above
|
||||
if(!this.groups.disabled)
|
||||
{
|
||||
this.groups.refresh(undefined, undefined);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
// invalidate client-side account-cache
|
||||
|
Loading…
Reference in New Issue
Block a user