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

[lib setting] folder perm: add 'add folder', bugfix & etc.

This commit is contained in:
llj
2016-02-29 17:01:12 +08:00
parent 442753f96a
commit b90c3d5bf7
5 changed files with 218 additions and 39 deletions

View File

@@ -16,7 +16,7 @@ define([
'mouseleave': 'rmHighlight',
'click .edit-icon': 'showEdit',
'change .perm-toggle-select': 'edit',
'click .remove': 'remove'
'click .rm': 'rm'
},
initialize: function(options) {
@@ -96,7 +96,7 @@ define([
});
},
remove: function() {
rm: function() {
var url = Common.getUrl({
name: this.data.perm_type == 'user' ? 'repo_user_folder_perm' : 'repo_group_folder_perm',
repo_id: this.data.repo_id