Refresh admin nm after group edit/delete

This commit is contained in:
Hadi Nategh 2014-07-10 10:30:37 +00:00
parent dbc6dbd7e1
commit c381aef5e4

View File

@ -156,14 +156,17 @@ 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);
if (nm) nm.applyFilters();
return false; // --> no regular refresh return false; // --> no regular refresh
default: // add, update, edit, null default: // add, update, edit, null
tree.refreshItem('/groups'); tree.refreshItem('/groups');
if (nm) nm.applyFilters();
return false; // --> no regular refresh return false; // --> no regular refresh
} }
} }