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

[folder perm] modification for group owned repo

This commit is contained in:
llj
2018-08-13 16:28:05 +08:00
parent 76183310e0
commit cfb9c9b319
5 changed files with 56 additions and 32 deletions

View File

@@ -4,10 +4,10 @@ define([
'backbone',
'common',
'app/views/share',
'app/views/folder-perm',
'app/views/dialogs/repo-folder-perm-admin',
'app/views/widgets/hl-item-view',
'app/views/widgets/dropdown'
], function($, _, Backbone, Common, ShareView, FolderPermView,
], function($, _, Backbone, Common, ShareView, RepoFolderPerm,
HLItemView, DropdownView) {
'use strict';
@@ -70,14 +70,13 @@ define([
setRepoPerm: function() {
var options = {
'obj_name': this.model.get('name'),
'dir_path': '/',
'repo_id': this.model.get('id'),
'is_group_owned_repo': true,
'group_id': this.group_id
'repo_name': this.model.get('name'),
'repo_id': this.model.get('id')
};
new RepoFolderPerm(options);
this._hideMenu();
new FolderPermView(options);
return false;
},