From c80cf9cc4e4bdf482cc7b3a27f64ecd4f50e3308 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 20 Feb 2018 12:24:34 +0100 Subject: [PATCH] comments: toggle icon will now mark hidden inline comments as visible for easier switching of outdated comments. --- rhodecode/public/js/src/rhodecode/comments.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rhodecode/public/js/src/rhodecode/comments.js b/rhodecode/public/js/src/rhodecode/comments.js index fe6f853a..04b8d54c 100644 --- 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'); };