mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
[file_view] file share: bug fix
This commit is contained in:
@@ -196,9 +196,12 @@ $('#download').click(function() {
|
|||||||
// share link
|
// share link
|
||||||
{% include "snippets/shared_link_js.html" %}
|
{% include "snippets/shared_link_js.html" %}
|
||||||
$('#share').click(function() {
|
$('#share').click(function() {
|
||||||
var op = $(this), name = '{{ filename }}',
|
var op = $(this),
|
||||||
aj_urls = { 'link': '{% url 'get_shared_link' %}?repo_id={{ repo.id }}&p={{path|urlencode}}' },
|
name = "{{filename|escapejs}}",
|
||||||
type = 'f', cur_path = '{{path}}'.substr(0, '{{path}}'.length - name.length);
|
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);
|
showSharePopup(op, name, aj_urls, type, cur_path);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user