mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
added 'invite people' link to 'share' & 'group manage members' popup
This commit is contained in:
@@ -4154,3 +4154,11 @@ img.thumbnail {
|
||||
text-align:center;
|
||||
margin-bottom:30px;
|
||||
}
|
||||
.invite-link-in-popup,
|
||||
.invite-link-in-popup:hover {
|
||||
text-decoration:none;
|
||||
}
|
||||
#share-popup .invite-link-in-popup {
|
||||
display:inline-block;
|
||||
margin-top:4px;
|
||||
}
|
||||
|
@@ -1252,6 +1252,12 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% if enable_guest_invitation and user.permissions.can_invite_guest %}
|
||||
<a href="{{ SITE_ROOT }}#invitations/" class="invite-link-in-popup">
|
||||
<span aria-hidden="true" class="sf2-icon-invite vam"></span>
|
||||
<span class="vam">{% trans "Invite People" %}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
<p class="error hide"></p>
|
||||
</div>
|
||||
|
||||
@@ -2041,6 +2047,12 @@
|
||||
<input type="hidden" name="user_name" />
|
||||
<input type="submit" value="{% trans "Add" %}" class="submit" />
|
||||
</form>
|
||||
{% if enable_guest_invitation and user.permissions.can_invite_guest %}
|
||||
<a href="{{ SITE_ROOT }}#invitations/" class="invite-link-in-popup">
|
||||
<span aria-hidden="true" class="sf2-icon-invite vam"></span>
|
||||
<span class="vam">{% trans "Invite People" %}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
<div class="members">
|
||||
<table>
|
||||
<thead>
|
||||
|
@@ -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,
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user