1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 23:02:26 +00:00

[dir view] file comment: fix

This commit is contained in:
llj
2017-10-13 18:00:37 +08:00
parent 8446155d7d
commit 946002b5c6

View File

@@ -118,7 +118,7 @@ define([
if ($('#dirent-details').css('right') == '0px') { // after `#dirent-details` is shown if ($('#dirent-details').css('right') == '0px') { // after `#dirent-details` is shown
this.viewDetails(); this.viewDetails();
} }
if ($('#file-comments').css('right') == '0px') { if (this.model.get('is_file') && $('#file-comments').css('right') == '0px') {
this.viewFileComments(); this.viewFileComments();
} }
} }