mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
Merge pull request #1523 from haiwen/share-fix
[share popup] fixed 'direct download link'
This commit is contained in:
@@ -117,7 +117,7 @@ define([
|
||||
_this.download_link = link; // for 'link send'
|
||||
_this.download_link_token = link_data.token; // for 'link delete'
|
||||
_this.$('#download-link').html(link);
|
||||
_this.$('#direct-dl-link').html(link + '?raw=1');
|
||||
_this.$('#direct-dl-link').html(link + '?dl=1');
|
||||
if (link_data.is_expired) {
|
||||
_this.$('#send-download-link').addClass('hide');
|
||||
_this.$('#download-link, #direct-dl-link').append(' <span class="error">(' + gettext('Expired') + ')</span>');
|
||||
@@ -265,7 +265,7 @@ define([
|
||||
|
||||
if (link_type == 'download') {
|
||||
_this.$('#download-link').html(data["link"]); // TODO: add 'click & select' func
|
||||
_this.$('#direct-dl-link').html(data['link'] + '?raw=1');
|
||||
_this.$('#direct-dl-link').html(data['link'] + '?dl=1');
|
||||
_this.download_link = data["link"]; // for 'link send'
|
||||
_this.download_link_token = data["token"]; // for 'link delete'
|
||||
_this.$('#download-link-operations').removeClass('hide');
|
||||
|
Reference in New Issue
Block a user