1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-17 14:37:58 +00:00

Merge pull request #3243 from haiwen/bugfix

[shared file view] bugfix
This commit is contained in:
llj 2019-04-11 13:35:08 +08:00 committed by GitHub
commit 4786968a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 %}
} }