1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

[folder perm] fixup for 'path'

This commit is contained in:
llj
2018-08-01 18:15:40 +08:00
parent efbfbb42c7
commit bc7184f75b
3 changed files with 7 additions and 7 deletions

View File

@@ -262,9 +262,10 @@ define([
},
setFolderPerm: function() {
var obj_name = this.model.get('obj_name');
var options = {
'obj_name': this.model.get('obj_name'),
'dir_path': this.dir.path,
'obj_name': obj_name,
'dir_path': Common.pathJoin([this.dir.path, obj_name]),
'repo_id': this.dir.repo_id,
'is_group_owned_repo': this.dir.user_can_set_folder_perm ? true : false
};

View File

@@ -552,9 +552,10 @@ define([
setFolderPerm: function() {
this.hideMobileMenu();
var obj_name = this.model.get('obj_name');
var options = {
'obj_name': this.model.get('obj_name'),
'dir_path': this.dir.path,
'obj_name': obj_name,
'dir_path': Common.pathJoin([this.dir.path, obj_name]),
'repo_id': this.dir.repo_id,
'is_group_owned_repo': this.dir.user_can_set_folder_perm ? true : false
};

View File

@@ -18,11 +18,9 @@ define([
initialize: function(options) {
this.repo_id = options.repo_id;
this.obj_name = options.obj_name;
this.dir_path = options.dir_path;
this.path = options.dir_path;
this.is_group_owned_repo = options.is_group_owned_repo;
this.group_id = options.group_id;
this.path = this.dir_path == '/' ? '/' :
Common.pathJoin([this.dir_path, this.obj_name]);
this.render();