1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

[file_view] file share: bug fix

This commit is contained in:
llj
2014-11-21 16:05:23 +08:00
committed by zhengxie
parent 249a2addb5
commit a181502615

View File

@@ -196,9 +196,12 @@ $('#download').click(function() {
// share link
{% include "snippets/shared_link_js.html" %}
$('#share').click(function() {
var op = $(this), name = '{{ filename }}',
aj_urls = { 'link': '{% url 'get_shared_link' %}?repo_id={{ repo.id }}&p={{path|urlencode}}' },
type = 'f', cur_path = '{{path}}'.substr(0, '{{path}}'.length - name.length);
var op = $(this),
name = "{{filename|escapejs}}",
path = "{{path|escapejs}}";
aj_urls = { 'link': '{% url 'get_shared_link' %}?repo_id={{ repo.id }}&p=' + e(path) },
type = 'f',
cur_path = path.substr(0, path.length - name.length);
showSharePopup(op, name, aj_urls, type, cur_path);
return false;
});