Keep showing a fold comment when tasklist is not complete

This commit is contained in:
Kazuki Shimizu
2018-05-31 08:35:08 +09:00
parent 65ac7b7b13
commit 20af5aa742

View File

@@ -19,3 +19,14 @@
</div>
</div>
</div>
@if(!latestCommitId.contains(comments.comments.head.commitId)) {
<script>
$(function(){
var foldComments = $('.fold-comments-@comments.comments.head.commentId');
if(foldComments.find('input:checkbox:not(:checked)').length > 0){
foldComments.show();
}
});
</script>
}