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

Add permission setting dialog

This commit is contained in:
Daniel Pan
2016-03-01 21:24:48 +08:00
parent 1fa7c8fd5e
commit 707346ce7d
2 changed files with 15 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ define([
'app/views/share',
'app/views/folder-perm',
'app/views/dialogs/dirent-mvcp',
'app/views/dialogs/dirent-rename'
'app/views/dialogs/dirent-rename',
], function($, _, Backbone, Common, FileTree, ShareView, FolderPermView,
DirentMvcpDialog, DirentRenameDialog) {
'use strict';
@@ -136,6 +136,7 @@ define([
this.$('.open-via-client').on('click', _.bind(this.open_via_client, this));
this.$('.lock-file').on('click', _.bind(this.lockFile, this));
this.$('.unlock-file').on('click', _.bind(this.unlockFile, this));
this.$('.set-folder-permission').on('click', _.bind(this.setFolderPerm, this));
return false;
},
@@ -203,6 +204,16 @@ define([
return false;
},
setFolderPerm: function() {
var options = {
'obj_name': this.model.get('obj_name'),
'dir_path': this.dir.path,
'repo_id': this.dir.repo_id
};
new FolderPermView(options);
return false;
},
lockFile: function() {
this.closeMenu();
this.model.lockFile({