2016-05-27 08:42:40 +00:00
|
|
|
define([
|
|
|
|
'underscore',
|
|
|
|
'backbone',
|
|
|
|
'common',
|
|
|
|
'sysadmin-app/models/trash-repo'
|
|
|
|
], function(_, Backbone, Common, TrashRepoModel) {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var TrashRepoCollection = Backbone.Collection.extend({
|
|
|
|
model: TrashRepoModel,
|
2016-06-07 09:32:01 +00:00
|
|
|
|
2016-05-27 08:42:40 +00:00
|
|
|
url: function () {
|
|
|
|
return Common.getUrl({name: 'admin-trash-libraries'});
|
2016-06-07 09:32:01 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
parse: function(data) {
|
|
|
|
this.search_owner = data.search_owner;
|
|
|
|
return data.repos;
|
2016-05-27 08:42:40 +00:00
|
|
|
}
|
2016-06-07 09:32:01 +00:00
|
|
|
|
2016-05-27 08:42:40 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
return TrashRepoCollection;
|
|
|
|
});
|