# HG changeset patch # User Marcin Kuzminski # Date 2018-02-20 11:24:34 # Node ID 9288dd3957ebc84418451b96bbd42644ac393f28 # Parent 2d4247f1269c58e705582eb811428ec2e5f95e91 comments: toggle icon will now mark hidden inline comments as visible for easier switching of outdated comments. diff --git a/rhodecode/public/js/src/rhodecode/comments.js b/rhodecode/public/js/src/rhodecode/comments.js --- a/rhodecode/public/js/src/rhodecode/comments.js +++ b/rhodecode/public/js/src/rhodecode/comments.js @@ -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'); };