From 8ab0ef45e6b300334be8b8e6c9c27fed9b0d7224 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 2 Jun 2015 16:14:18 +0200 Subject: [PATCH] SONAR-6602 refresh collections after membership change --- server/sonar-web/src/main/js/apps/groups/users-view.js | 5 +++++ server/sonar-web/src/main/js/apps/users/groups-view.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/server/sonar-web/src/main/js/apps/groups/users-view.js b/server/sonar-web/src/main/js/apps/groups/users-view.js index cfe6468ce0e..bd236b67040 100644 --- a/server/sonar-web/src/main/js/apps/groups/users-view.js +++ b/server/sonar-web/src/main/js/apps/groups/users-view.js @@ -31,6 +31,11 @@ define([ return r.users; } }); + }, + + onClose: function () { + this.model.collection.refresh(); + Modal.prototype.onClose.apply(this, arguments); } }); diff --git a/server/sonar-web/src/main/js/apps/users/groups-view.js b/server/sonar-web/src/main/js/apps/users/groups-view.js index 1634fb1d244..992594b4f10 100644 --- a/server/sonar-web/src/main/js/apps/users/groups-view.js +++ b/server/sonar-web/src/main/js/apps/users/groups-view.js @@ -32,6 +32,11 @@ define([ return r.groups; } }); + }, + + onClose: function () { + this.model.collection.refresh(); + Modal.prototype.onClose.apply(this, arguments); } }); -- 2.39.5