From adad9baeaf6d978232b973a5ee40d42d292edb6f Mon Sep 17 00:00:00 2001 From: llj Date: Thu, 11 Apr 2019 13:32:34 +0800 Subject: [PATCH] [shared file view] bugfix --- seahub/templates/shared_file_view_react.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seahub/templates/shared_file_view_react.html b/seahub/templates/shared_file_view_react.html index 0beee94749..e22cb2480e 100644 --- a/seahub/templates/shared_file_view_react.html +++ b/seahub/templates/shared_file_view_react.html @@ -50,6 +50,7 @@ commitID: '{{ current_commit.id }}' || '{{ repo.head_cmmt_id }}', // for 'view file in shared dir' + {% if zipped %} zipped: (function() { var list = []; {% for name, path in zipped %} @@ -60,6 +61,7 @@ {% endfor %} return list; })(), + {% endif %} prevImgPath: {% if img_prev %}'{{ img_prev|escapejs }}'{% else %}''{% endif %}, nextImgPath: {% if img_next %}'{{ img_next|escapejs }}'{% else %}''{% endif %} }