From 2871228a0d4b7134d45a35525fac265fde9e9810 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 10 Jul 2014 16:00:52 +0000 Subject: [PATCH] Changing group in admin needs to refresh nm group filter too --- admin/js/app.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/admin/js/app.js b/admin/js/app.js index 7e4aca64c8..6cd3bf7b9a 100644 --- a/admin/js/app.js +++ b/admin/js/app.js @@ -161,14 +161,22 @@ app.classes.admin = AppJS.extend( { case 'delete': tree.deleteItem('/groups/'+_id, false); - if (nm) nm.applyFilters(); - return false; // --> no regular refresh + if (nm) nm.getInstanceManager().submit(); + break; default: // add, update, edit, null - tree.refreshItem('/groups'); - if (nm) nm.applyFilters(); - return false; // --> no regular refresh + if (nm) + { + 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 else if (!_id)