forked from extern/egroupware
Changing group in admin needs to refresh nm group filter too
This commit is contained in:
parent
bfcc488233
commit
1ceaef9b0b
@ -156,16 +156,27 @@ app.classes.admin = AppJS.extend(
|
|||||||
if (_id < 0)
|
if (_id < 0)
|
||||||
{
|
{
|
||||||
var tree = this.et2.getWidgetById('tree');
|
var tree = this.et2.getWidgetById('tree');
|
||||||
|
var nm = this.et2.getWidgetById('nm');
|
||||||
switch(_type)
|
switch(_type)
|
||||||
{
|
{
|
||||||
case 'delete':
|
case 'delete':
|
||||||
tree.deleteItem('/groups/'+_id, false);
|
tree.deleteItem('/groups/'+_id, false);
|
||||||
return false; // --> no regular refresh
|
if (nm) nm.getInstanceManager().submit();
|
||||||
|
break;
|
||||||
|
|
||||||
default: // add, update, edit, null
|
default: // add, update, edit, null
|
||||||
tree.refreshItem('/groups');
|
if (nm)
|
||||||
return false; // --> no regular refresh
|
{
|
||||||
|
var activeFilters = nm.activeFilters;
|
||||||
|
nm.getInstanceManager().submit();
|
||||||
|
var nm = this.et2.getWidgetById('nm');
|
||||||
|
nm.applyFilters(activeFilters);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var refreshTree = this.et2.getWidgetById('tree');
|
||||||
|
if (refreshTree) refreshTree.refreshItem('/groups');
|
||||||
|
return false; // --> no regular refresh
|
||||||
}
|
}
|
||||||
// not a user or group, eg. categories
|
// not a user or group, eg. categories
|
||||||
else if (!_id)
|
else if (!_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user