# HG changeset patch # User Marcin Lulek # Date 2016-07-06 14:25:15 # Node ID 6dd024fc8513979ee50eb2a2a3cde881d5dc551e # Parent 4c58728cd6c5c85b069f62f02062018ec8d5782a diffs: bring back blue line highlight on comment link diff --git a/rhodecode/public/js/src/rhodecode.js b/rhodecode/public/js/src/rhodecode.js --- a/rhodecode/public/js/src/rhodecode.js +++ b/rhodecode/public/js/src/rhodecode.js @@ -259,6 +259,15 @@ function offsetScroll(element, offset){ }); $('.compare_view_files').on( + 'mouseenter mouseleave', 'tr.line .add-comment-line a',function(event){ + if (event.type === "mouseenter") { + $(this).parents('tr.line').addClass('commenting'); + } else { + $(this).parents('tr.line').removeClass('commenting'); + } + }); + + $('.compare_view_files').on( 'click', 'tr.line .lineno a',function(event) { if ($(this).text() != ""){ $('tr.line').removeClass('selected');