mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 22:01:06 +00:00
modified some ui (fileshare & grpmember-add popup, path of shared dir's file
This commit is contained in:
@@ -267,6 +267,7 @@ $('.grp-admin-add').click(function() {
|
||||
|
||||
$('#grp-member-add').click(function() {
|
||||
$("#member-add-form").modal({appendTo: "#main", focus: false});
|
||||
$('#simplemodal-container').css({'height':'auto'});
|
||||
addAutocomplete('#added-member-name', '#member-add-form', contact_list);
|
||||
return false;
|
||||
});
|
||||
|
@@ -1141,9 +1141,6 @@ textarea:-moz-placeholder {/* for FF */
|
||||
height:80px;
|
||||
padding:2px;
|
||||
}
|
||||
#added-member-name {
|
||||
width:97%;
|
||||
}
|
||||
#repo-share-form {
|
||||
width:266px;
|
||||
}
|
||||
|
@@ -656,7 +656,7 @@ $('.file-share').click(function() {
|
||||
$('#shared-link-text').css({'width':$('#linkwidth').width() + 2});
|
||||
$('#file-share').modal({'focus':false}); // in ff: if 'focus' is true, 'shared-link-text' gets the focus
|
||||
$('#linkwidth').remove();
|
||||
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
|
||||
$('#simplemodal-container').css({'height':'auto'});
|
||||
}
|
||||
if ($(this).data('link')) {
|
||||
showPopup($(this).data('link'));
|
||||
|
@@ -13,8 +13,8 @@
|
||||
<h2 id="view-hd">{{ file_name }}</h2>
|
||||
<div id="file">
|
||||
<div id="file-op">
|
||||
<p class="fleft">
|
||||
{% if zipped %}
|
||||
<p class="path fleft">
|
||||
{% trans "Current path: "%}
|
||||
{% for name, link in zipped %}
|
||||
{% if not forloop.last %}
|
||||
@@ -23,10 +23,10 @@
|
||||
{{ name }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% else %}
|
||||
<p class="fleft">{% trans "Shared by: " %}{{ username|email2nickname }}</p>
|
||||
{% trans "Shared by: " %}{{ username|email2nickname }}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
{% if filetype == 'Text' or filetype == 'Image' or filetype == 'SVG' or filetype == 'Markdown' %}
|
||||
<button data="{{ SITE_ROOT }}repo/{{ repo.id }}/{{ obj_id }}/?file_name={{ file_name }}&op=view&t={{ shared_token }}" id="view-original">{% trans "Raw" %}</button>
|
||||
|
@@ -74,7 +74,7 @@ $('#send-shared-link').click(function() { // for file_view.html and subdir page
|
||||
$('#send-link').click(function() { // for 'file-share' in repo.html
|
||||
$(this).addClass('hide');
|
||||
var input = $('#link-send-input');
|
||||
input.css({'min-width':input.css('width'), 'width': $('#file-share').width() - parseInt(input.css('padding-left')) - parseInt(input.css('padding-right')) - parseInt(input.css('border-left-width')) - parseInt(input.css('border-right-width'))});
|
||||
input.css({'width': $('#file-share').width() - parseInt(input.css('padding-left')) - parseInt(input.css('padding-right')) - parseInt(input.css('border-left-width')) - parseInt(input.css('border-right-width'))});
|
||||
$('#link-send-form').removeClass('hide');
|
||||
addAutocomplete('#link-send-input', '#link-send-form', share_list);
|
||||
});
|
||||
|
Reference in New Issue
Block a user