1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 07:47:32 +00:00

[share] bugfix for 'download link'

This commit is contained in:
llj 2015-05-27 15:10:50 +08:00
parent 7f8e7f15fe
commit be238d44c4
3 changed files with 10 additions and 3 deletions

View File

@ -3576,6 +3576,9 @@ button.add-pub-repo {
}
/* share popup */
#download-link-operations dl {
margin-top:0;
}
#download-link-operations dt {
margin: 0;
}

View File

@ -361,11 +361,14 @@
<input type="submit" value="{% trans 'Generate'%}" />
</form>
<div id="download-link-operations" class="hide">
<dt class="vam">{% trans "Link: " %}</dt><dd id="download-link"></dd>
<dl>
<dt>{% trans "Link: " %}</dt>
<dd id="download-link"></dd>
<% if (!is_dir) { %>
<dt class="vam">{% trans "Direct Download Link: " %}</dt><dd id="direct-dl-link"></dd>
<dt>{% trans "Direct Download Link: " %}</dt>
<dd id="direct-dl-link"></dd>
<% } %>
</dl>
<button id="send-download-link">{% trans 'Send' %}</button>
<button id="delete-download-link">{% trans 'Delete' %}</button>
<form id="send-download-link-form" action="" class="hide">

View File

@ -222,6 +222,7 @@ define([
if (link_type == 'download') {
_this.$('#download-link').html(data["download_link"]); // TODO: add 'click & select' func
_this.$('#direct-dl-link').html(data['download_link'] + '?raw=1');
_this.download_link = data["download_link"]; // for 'link send'
_this.download_link_token = data["token"]; // for 'link delete'
_this.$('#download-link-operations').removeClass('hide');