1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00
Files
seahub/static/scripts/app/collections/group-repos.js
2015-04-22 15:31:49 +08:00

28 lines
573 B
JavaScript

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_repos', group_id: this.group_id});
},
setGroupID: function(group_id) {
this.group_id = group_id;
}
// initialize: function( ) {
// },
});
return GroupRepoCollection;
});