changeset 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 aa6a1c6f2ac5
children cf370b6d3977
files rhodecode/public/js/rhodecode.js
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
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