diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-06-02 13:53:17 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-06-02 15:08:42 +0200 |
commit | c04875f418197895a512cc77026327c3da99d1d2 (patch) | |
tree | dbc81566b6da483d907ba75b97e9b41b15b29570 /server/sonar-web/src/main/js/apps/users/groups-view.js | |
parent | c0f8ed1eca7185bcb63454ba8757a0290721e1dc (diff) | |
download | sonarqube-c04875f418197895a512cc77026327c3da99d1d2.tar.gz sonarqube-c04875f418197895a512cc77026327c3da99d1d2.zip |
SONAR-6602 refactor groups page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/groups-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/users/groups-view.js | 13 |
1 files changed, 7 insertions, 6 deletions
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 b242f435773..ee817e66694 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 @@ -9,23 +9,24 @@ define([ itemTemplate: Templates['users-group'], onRender: function () { + console.log(this.model); Modal.prototype.onRender.apply(this, arguments); new window.SelectList({ el: this.$('#users-groups'), width: '100%', - readOnly: true, + readOnly: false, focusSearch: false, format: function (item) { return item.name + '<br><span class="note">' + item.description + '</span>'; }, searchUrl: baseUrl + '/api/users/groups?ps=100&login=' + this.model.id, - selectUrl: baseUrl + '/api/qualityprofiles/add_project', - deselectUrl: baseUrl + '/api/qualityprofiles/remove_project', + selectUrl: baseUrl + '/api/usergroups/add_user', + deselectUrl: baseUrl + '/api/usergroups/remove_user', extra: { - profileKey: key + userLogin: this.model.id }, - selectParameter: 'projectUuid', - selectParameterValue: 'uuid', + selectParameter: 'groupId', + selectParameterValue: 'id', parse: function (r) { this.more = false; return r.groups; |