1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

[system repo admin] fix, improvement, supplement, clean

This commit is contained in:
llj
2016-06-07 17:32:01 +08:00
committed by lian
parent a767aeb3d8
commit 8c2e16ca36
29 changed files with 615 additions and 1153 deletions

View File

@@ -0,0 +1,25 @@
define([
'underscore',
'backbone',
'common',
'sysadmin-app/models/repo'
], function(_, Backbone, Common, RepoModel) {
'use strict';
var RepoCollection = Backbone.Collection.extend({
model: RepoModel,
url: function () {
return Common.getUrl({name: 'admin-libraries'});
},
parse: function(data) {
this.search_name = data.name;
this.search_owner = data.owner;
return data.repos;
}
});
return RepoCollection;
});