Changeset - c3d9cd8c0cba
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-11-13 15:56:41
marcin@python-works.com
fixed inline comment file parsing
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
rhodecode/public/js/rhodecode.js
Show inline comments
 
@@ -319,20 +319,20 @@ var createInlineForm = function(parent_t
 
	form_hide_button.on('click', function(e) {
 
		var newtr = e.currentTarget.parentNode.parentNode.parentNode.parentNode.parentNode;
 
		removeInlineForm(newtr);
 
		YUD.removeClass(parent_tr, 'form-open');
 
	});
 
	return form
 
}
 
var getLineNo = function(tr) {
 
	var line;
 
	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
 
}
 
\ No newline at end of file
0 comments (0 inline, 0 general)