1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

Add direct link for shared file, refactor share link download

This commit is contained in:
zhengxie
2015-05-21 17:20:08 +08:00
parent ce75273eeb
commit 8993da33d7
6 changed files with 82 additions and 64 deletions

View File

@@ -114,6 +114,7 @@ define([
_this.download_link = data["download_link"]; // for 'link send'
_this.download_link_token = data["token"]; // for 'link delete'
_this.$('#download-link').html(data['download_link']); // TODO:
_this.$('#direct-link').html(data['download_link']+'?raw=1'); // TODO:
_this.$('#download-link-operations').removeClass('hide');
} else {
_this.$('#generate-download-link-form').removeClass('hide');