# HG changeset patch # User Marcin Kuzminski # Date 2011-11-13 14:56:41 # Node ID c3d9cd8c0cbadb9ff61ac298f06f0a0b0b284c80 # Parent aa6a1c6f2ac5c5998f5ff24ef968dcc3b61a4e52 fixed inline comment file parsing diff --git a/rhodecode/public/js/rhodecode.js b/rhodecode/public/js/rhodecode.js --- a/rhodecode/public/js/rhodecode.js +++ b/rhodecode/public/js/rhodecode.js @@ -328,10 +328,10 @@ var getLineNo = function(tr) { var o = tr.children[0].id.split('_'); var n = tr.children[1].id.split('_'); - if (n.length == 2) { - line = n[1]; - } else if (o.length == 2) { - line = o[1]; + if (n.length >= 2) { + line = n[n.length-1]; + } else if (o.length >= 2) { + line = o[n.length-1]; } return line