mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 15:19:06 +00:00
[lib setting] add 'folder perm'
This commit is contained in:
@@ -5,9 +5,10 @@ define([
|
||||
'common',
|
||||
'app/views/share',
|
||||
'app/views/dialogs/repo-history-settings',
|
||||
'app/views/dialogs/repo-share-link-admin'
|
||||
'app/views/dialogs/repo-share-link-admin',
|
||||
'app/views/dialogs/repo-folder-perm-admin'
|
||||
], function($, _, Backbone, Common, ShareView, HistorySettingsDialog,
|
||||
RepoShareLinkAdminDialog) {
|
||||
RepoShareLinkAdminDialog, RepoFolderPermAdminDialog) {
|
||||
'use strict';
|
||||
|
||||
var RepoView = Backbone.View.extend({
|
||||
@@ -26,8 +27,9 @@ define([
|
||||
'click .js-toggle-popup': 'togglePopup',
|
||||
'click .js-repo-rename': 'rename',
|
||||
'click .js-repo-transfer': 'transfer',
|
||||
'click .js-popup-history-settings': 'popupHistorySettings',
|
||||
'click .js-popup-share-link-admin': 'popupShareLinkAdmin'
|
||||
'click .js-popup-history-setting': 'popupHistorySetting',
|
||||
'click .js-popup-share-link-admin': 'popupShareLinkAdmin',
|
||||
'click .js-popup-folder-perm-admin': 'popupFolderPermAdmin'
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
@@ -276,7 +278,7 @@ define([
|
||||
});
|
||||
},
|
||||
|
||||
popupHistorySettings: function() {
|
||||
popupHistorySetting: function() {
|
||||
var options = {
|
||||
'repo_name': this.model.get('name'),
|
||||
'repo_id': this.model.get('id')
|
||||
@@ -294,6 +296,16 @@ define([
|
||||
this.togglePopup(); // close the popup
|
||||
new RepoShareLinkAdminDialog(options);
|
||||
return false;
|
||||
},
|
||||
|
||||
popupFolderPermAdmin: function() {
|
||||
var options = {
|
||||
'repo_name': this.model.get('name'),
|
||||
'repo_id': this.model.get('id')
|
||||
};
|
||||
this.togglePopup(); // close the popup
|
||||
new RepoFolderPermAdminDialog(options);
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user