comparison 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
comparison
equal deleted inserted replaced
1678:aa6a1c6f2ac5 1679:c3d9cd8c0cba
326 var getLineNo = function(tr) { 326 var getLineNo = function(tr) {
327 var line; 327 var line;
328 var o = tr.children[0].id.split('_'); 328 var o = tr.children[0].id.split('_');
329 var n = tr.children[1].id.split('_'); 329 var n = tr.children[1].id.split('_');
330 330
331 if (n.length == 2) { 331 if (n.length >= 2) {
332 line = n[1]; 332 line = n[n.length-1];
333 } else if (o.length == 2) { 333 } else if (o.length >= 2) {
334 line = o[1]; 334 line = o[n.length-1];
335 } 335 }
336 336
337 return line 337 return line
338 } 338 }