1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +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

@@ -8,12 +8,18 @@ define([
var DirentCollection = Backbone.Collection.extend({
model: DirentModel,
parse: function (data) {
url: function() {
return Common.getUrl({name: 'admin-library-dirents', repo_id: this.repo_id});
},
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;