1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-31 22:57:47 +00:00

[shared file view] bugfix

This commit is contained in:
llj 2019-04-11 13:32:34 +08:00
parent 7a8ef5e0aa
commit adad9baeaf

View File

@ -50,6 +50,7 @@
commitID: '{{ current_commit.id }}' || '{{ repo.head_cmmt_id }}', commitID: '{{ current_commit.id }}' || '{{ repo.head_cmmt_id }}',
// for 'view file in shared dir' // for 'view file in shared dir'
{% if zipped %}
zipped: (function() { zipped: (function() {
var list = []; var list = [];
{% for name, path in zipped %} {% for name, path in zipped %}
@ -60,6 +61,7 @@
{% endfor %} {% endfor %}
return list; return list;
})(), })(),
{% endif %}
prevImgPath: {% if img_prev %}'{{ img_prev|escapejs }}'{% else %}''{% endif %}, prevImgPath: {% if img_prev %}'{{ img_prev|escapejs }}'{% else %}''{% endif %},
nextImgPath: {% if img_next %}'{{ img_next|escapejs }}'{% else %}''{% endif %} nextImgPath: {% if img_next %}'{{ img_next|escapejs }}'{% else %}''{% endif %}
} }