1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00
This commit is contained in:
lian
2016-05-27 16:42:40 +08:00
parent 72f4297934
commit a767aeb3d8
22 changed files with 240 additions and 212 deletions

View File

@@ -0,0 +1,24 @@
define([
'underscore',
'backbone',
'common',
'sysadmin-app/models/dirent'
], function(_, Backbone, Common, DirentModel) {
'use strict';
var DirentCollection = Backbone.Collection.extend({
model: DirentModel,
parse: function (data) {
this.repo_name = data.repo_name;
this.repo_id = data.repo_id;
this.is_system_library = data.is_system_library;
return data.dirent_list; // return the array
},
setPath: function(repo_id, path) {
this.repo_id = repo_id;
this.path = path;
}
});
return DirentCollection;
});