1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-27 07:28:42 +00:00
seahub/static/scripts/app/collections/pub-repos.js
2016-03-09 20:54:33 +08:00

22 lines
394 B
JavaScript

define([
'underscore',
'backbone',
'common',
'app/models/pub-repo'
], function(_, Backbone, Common, PubRepo) {
'use strict';
var PubRepoCollection = Backbone.Collection.extend({
model: PubRepo,
comparator: -'mtime',
url: function() {
return Common.getUrl({name: 'pub_repos'});
}
});
return PubRepoCollection;
});