mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-27 07:28:42 +00:00
22 lines
394 B
JavaScript
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;
|
|
});
|