comments: toggle icon will now mark hidden inline comments as visible for easier switching of outdated comments.

This commit is contained in:
Marcin Kuzminski 2018-02-20 12:24:34 +01:00
parent ed3ad2ed9a
commit c80cf9cc4e

View file

@ -598,6 +598,8 @@ var CommentsController = function() {
this.toggleLineComments = function(node) {
self.toggleComments(node, true);
var $node = $(node);
// mark outdated comments as visible before the toggle;
$(node.closest('tr')).find('.comment-outdated').show();
$node.closest('tr').toggleClass('hide-line-comments');
};