Mercurial > kallithea
diff rhodecode/public/js/rhodecode.js @ 1679:c3d9cd8c0cba beta
fixed inline comment file parsing
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 13 Nov 2011 16:56:41 +0200 |
parents | 7276b170ce8b |
children | 1f2ba96de73e |
line wrap: on
line diff
--- 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