mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-21 20:58:21 +00:00
25 lines
531 B
JavaScript
25 lines
531 B
JavaScript
define([
|
|
'underscore',
|
|
'backbone',
|
|
'common',
|
|
'sysadmin-app/models/trash-repo'
|
|
], function(_, Backbone, Common, TrashRepoModel) {
|
|
'use strict';
|
|
|
|
var TrashRepoCollection = Backbone.Collection.extend({
|
|
model: TrashRepoModel,
|
|
|
|
url: function () {
|
|
return Common.getUrl({name: 'admin-trash-libraries'});
|
|
},
|
|
|
|
parse: function(data) {
|
|
this.search_owner = data.search_owner;
|
|
return data.repos;
|
|
}
|
|
|
|
});
|
|
|
|
return TrashRepoCollection;
|
|
});
|