1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

[user panel] added 'group owned library' function

This commit is contained in:
llj
2018-05-04 14:40:54 +08:00
parent b87f0312d7
commit 1b6a8479da
9 changed files with 156 additions and 22 deletions

View File

@@ -0,0 +1,27 @@
define([
'underscore',
'backbone',
'common',
'app/models/group-repo'
], function(_, Backbone, Common, GroupRepo) {
'use strict';
var GroupRepoCollection = Backbone.Collection.extend({
model: GroupRepo,
comparator: -'mtime',
url: function() {
return Common.getUrl({name: 'group_owned_repos', group_id: this.group_id});
},
parse: function(data) {
//return data.repos;
},
setGroupID: function(group_id) {
this.group_id = group_id;
}
});
return GroupRepoCollection;
});