1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-27 23:48:48 +00:00
seahub/static/scripts/app/collections/pub-repos.js

22 lines
394 B
JavaScript
Raw Normal View History

2015-04-03 09:01:13 +00:00
define([
'underscore',
'backbone',
2016-03-09 12:54:33 +00:00
'common',
2015-04-03 09:01:13 +00:00
'app/models/pub-repo'
2016-03-09 12:54:33 +00:00
], function(_, Backbone, Common, PubRepo) {
2015-04-03 09:01:13 +00:00
'use strict';
var PubRepoCollection = Backbone.Collection.extend({
model: PubRepo,
2016-03-09 12:54:33 +00:00
comparator: -'mtime',
url: function() {
return Common.getUrl({name: 'pub_repos'});
}
2015-04-03 09:01:13 +00:00
});
return PubRepoCollection;
});