# HG changeset patch # User Thomas De Schampheleire # Date 2015-01-29 21:48:54 # Node ID 990ec5ed4ee5f0d943b582c8349b88fe4a334e71 # Parent 051624cb5f3abf7d7270a260bf9d758a33f196e8 comment handling: extend next/previous links to global comments (issue #91) Until now, only inline comments were linked to each other with next/previous links. This commit extends this mechanism to global comments, such that the last inline comment has a next link to the first global comment, which has a next link to the next global comment (and the other way around for previous links). In order to work well, instead of hiding inline comments that have been moved, they actually have to be deleted. diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -818,6 +818,7 @@ var renderInlineComments = function(file var target_id = $(box).attr('target_id'); // actual comments with line numbers var comments = box.children; + var obsolete_comments = []; for(var i=0; i