1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

added 'invite people' link to 'share' & 'group manage members' popup

This commit is contained in:
llj
2018-05-08 16:12:04 +08:00
parent 03dac0bceb
commit 4a761aac0f
4 changed files with 30 additions and 0 deletions

View File

@@ -77,9 +77,14 @@ define([
},
events: {
'click .invite-link-in-popup': 'closePopup',
'submit form': 'formSubmit'
},
closePopup: function() {
$.modal.close();
},
addOne: function(item, collection, options) {
var view = new ItemView({
model: item,

View File

@@ -109,6 +109,7 @@ define([
'keydown #generate-upload-link-form .show-or-hide-password': 'showOrHideUploadPassword',
// dir private share
'click .invite-link-in-popup': 'closePopup',
'click #add-dir-user-share-item .submit': 'dirUserShare',
'click #add-dir-group-share-item .submit': 'dirGroupShare'
},
@@ -738,6 +739,10 @@ define([
});
},
closePopup: function() {
$.modal.close();
},
dirUserShare: function () {
var $panel = $('#dir-user-share');
var $form = this.$('#add-dir-user-share-item'); // pseudo form