1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00

[lib setting] folder perm: open the jstree

This commit is contained in:
llj
2016-03-10 15:11:21 +08:00
parent 6fce263e42
commit 91c3f75251
5 changed files with 18 additions and 8 deletions

View File

@@ -160,11 +160,20 @@ define([
var $form = $('.js-folder-select-form', $permContent.parent()).slideDown();
var $jstreeContainer = $('.js-jtree-container', $form);
/*
var repo_data = FileTree.formatRepoData([{
'id': this.repo_id,
'name': this.repo_name
}]);
FileTree.renderDirTree($jstreeContainer, $form, repo_data);
*/
FileTree.renderTreeForPath({
$form: $form,
$container: $jstreeContainer,
repo_id: this.repo_id,
repo_name: this.repo_name,
path: '/'
});
},
addFolder: function(e) {