mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
[lib setting] remove 'permissions'
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
<ul class="hidden-op repo-hidden-op hide dropdown-menu">
|
||||
<li><a class="op js-repo-rename" href="#">{% trans "Rename" %}</a></li>
|
||||
<li><a class="op js-repo-transfer" href="#">{% trans "Transfer" %}</a></li>
|
||||
<li><a class="op js-popup-permission-settings" href="#">{% trans "Permissions" %}</a></li>
|
||||
<li><a class="op js-popup-history-settings" href="#">{% trans "History Settings" %}</a></li>
|
||||
<li><a class="op js-popup-share-link-admin" href="#">{% trans "Shared Links" %}</a></li>
|
||||
</ul>
|
||||
|
@@ -1,44 +0,0 @@
|
||||
define([
|
||||
'jquery',
|
||||
'underscore',
|
||||
'backbone',
|
||||
'common'
|
||||
], function($, _, Backbone, Common) {
|
||||
'use strict';
|
||||
|
||||
var RepoPermissionsDialog = Backbone.View.extend({
|
||||
tagName: 'div',
|
||||
id: 'repo-permissions-dialog',
|
||||
template: _.template($('#repo-permissions-dialog-tmpl').html()),
|
||||
|
||||
initialize: function(options) {
|
||||
this.repo_name = options.repo_name;
|
||||
this.repo_id = options.repo_id;
|
||||
|
||||
this.render();
|
||||
this.$('.op-target').css({'max-width': 280});
|
||||
this.$el.modal();
|
||||
$("#simplemodal-container").css({'height':'auto'});
|
||||
},
|
||||
|
||||
render: function() {
|
||||
var repo_name = this.repo_name;
|
||||
this.$el.html(this.template({
|
||||
title: gettext("{placeholder} Permission Settings")
|
||||
.replace('{placeholder}',
|
||||
'<span class="op-target ellipsis ellipsis-op-target" title="'
|
||||
+ Common.HTMLescape(repo_name) + '">'
|
||||
+ Common.HTMLescape(repo_name) + '</span>'),
|
||||
}));
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
events: {
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
return RepoPermissionsDialog;
|
||||
});
|
@@ -5,10 +5,9 @@ define([
|
||||
'common',
|
||||
'app/views/share',
|
||||
'app/views/dialogs/repo-history-settings',
|
||||
'app/views/dialogs/repo-permissions',
|
||||
'app/views/dialogs/repo-share-link-admin'
|
||||
], function($, _, Backbone, Common, ShareView, HistorySettingsDialog,
|
||||
RepoPermissionsDialog, RepoShareLinkAdminDialog) {
|
||||
RepoShareLinkAdminDialog) {
|
||||
'use strict';
|
||||
|
||||
var RepoView = Backbone.View.extend({
|
||||
@@ -27,7 +26,6 @@ define([
|
||||
'click .js-toggle-popup': 'togglePopup',
|
||||
'click .js-repo-rename': 'rename',
|
||||
'click .js-repo-transfer': 'transfer',
|
||||
'click .js-popup-permission-settings': 'popupPermissionSettings',
|
||||
'click .js-popup-history-settings': 'popupHistorySettings',
|
||||
'click .js-popup-share-link-admin': 'popupShareLinkAdmin'
|
||||
},
|
||||
@@ -288,16 +286,6 @@ define([
|
||||
return false;
|
||||
},
|
||||
|
||||
popupPermissionSettings: function() {
|
||||
var options = {
|
||||
'repo_name': this.model.get('name'),
|
||||
'repo_id': this.model.get('id')
|
||||
};
|
||||
this.togglePopup(); // close the popup
|
||||
new RepoPermissionsDialog(options);
|
||||
return false;
|
||||
},
|
||||
|
||||
popupShareLinkAdmin: function() {
|
||||
var options = {
|
||||
'repo_name': this.model.get('name'),
|
||||
|
@@ -3,10 +3,8 @@ define([
|
||||
'underscore',
|
||||
'backbone',
|
||||
'common',
|
||||
'jquery.ui.tabs',
|
||||
'select2',
|
||||
'app/views/folder-share-item'
|
||||
], function($, _, Backbone, Common, Tabs, Select2, FolderShareItemView) {
|
||||
], function($, _, Backbone, Common, FolderShareItemView) {
|
||||
'use strict';
|
||||
|
||||
var SharePopupView = Backbone.View.extend({
|
||||
|
Reference in New Issue
Block a user