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