mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
update admin manage group page
This commit is contained in:
29
static/scripts/sysadmin-app/collection/group-members.js
Normal file
29
static/scripts/sysadmin-app/collection/group-members.js
Normal file
@@ -0,0 +1,29 @@
|
||||
define([
|
||||
'underscore',
|
||||
'backbone',
|
||||
'common',
|
||||
'sysadmin-app/models/group-member'
|
||||
], function(_, Backbone, Common, GroupMemberModel) {
|
||||
|
||||
'use strict';
|
||||
|
||||
var GroupMemberCollection = Backbone.Collection.extend({
|
||||
|
||||
model: GroupMemberModel,
|
||||
|
||||
setGroupId: function(group_id) {
|
||||
this.group_id = group_id;
|
||||
},
|
||||
|
||||
parse: function (data) {
|
||||
this.group_name= data.group_name;
|
||||
return data.members; // return the array
|
||||
},
|
||||
|
||||
url: function () {
|
||||
return Common.getUrl({name: 'admin-group-members', group_id: this.group_id});
|
||||
}
|
||||
});
|
||||
|
||||
return GroupMemberCollection;
|
||||
});
|
Reference in New Issue
Block a user