changeset 7088:b83adf1509d6

comments: warn/highlight the fact that this comment is outside the context
author domruf <dominikruf@gmail.com>
date Wed, 19 Oct 2016 23:46:06 +0200
parents 1174b9f0afc4
children 04a41e0361d6
files kallithea/public/js/base.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/js/base.js	Tue Aug 08 23:43:11 2017 +0200
+++ b/kallithea/public/js/base.js	Wed Oct 19 23:46:06 2016 +0200
@@ -584,7 +584,7 @@
                 _comment_div_append_form($comment_div, f_path, line_no);
             }
         } else {
-            $anchorcomment.before("Comment to {0} line {1} which is outside the diff context:".format(f_path || '?', line_no || '?'));
+            $anchorcomment.before("<span class='bg-warning'>Comment to {0} line {1} which is outside the diff context:</span>".format(f_path || '?', line_no || '?'));
         }
     });
     linkInlineComments($('.firstlink'), $('.comment:first-child'));