# HG changeset patch # User Marcin Kuzminski # Date 1321196201 -7200 # Node ID c3d9cd8c0cbadb9ff61ac298f06f0a0b0b284c80 # Parent aa6a1c6f2ac5c5998f5ff24ef968dcc3b61a4e52 fixed inline comment file parsing diff -r aa6a1c6f2ac5 -r c3d9cd8c0cba rhodecode/public/js/rhodecode.js --- a/rhodecode/public/js/rhodecode.js Sun Nov 13 16:38:34 2011 +0200 +++ b/rhodecode/public/js/rhodecode.js Sun Nov 13 16:56:41 2011 +0200 @@ -328,10 +328,10 @@ 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