Changeset - 28eeddf81b25
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 14 years ago 2011-11-14 21:20:04
marcin@python-works.com
inline comments gui
2 files changed with 19 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/public/css/diff.css
Show inline comments
 
@@ -61,30 +61,47 @@ table.code-difftable td {
 
	text-decoration:none;
 
}
 

	
 
.code-difftable .lineno{
 
	background:none repeat scroll 0 0 #EEEEEE !important;
 
	padding-left:2px;
 
	padding-right:2px;
 
	text-align:right;
 
	width:30px;
 
	-moz-user-select:none;
 
	-webkit-user-select: none;
 
}
 
.code-difftable .lineno-inline{
 
    background:none repeat scroll 0 0 #FFF !important;
 
    padding-left:2px;
 
    padding-right:2px;
 
    text-align:right;
 
    width:30px;
 
    -moz-user-select:none;
 
    -webkit-user-select: none;
 
}
 
.code-difftable .new {
 
	border-right: 1px solid #CCC !important;
 
}
 
.code-difftable .old {
 
    border-right: 1px solid #CCC !important;
 
}
 

	
 
.code-difftable .lineno-inline.new-inline{
 
	
 
}
 
.code-difftable .lineno-inline.old-inline{
 
	border-right: 1px solid #CCC !important;
 
}
 

	
 
.code-difftable .lineno pre{
 
	color:#747474 !important;
 
	font:11px "Bitstream Vera Sans Mono",Monaco,"Courier New",Courier,monospace !important;
 
	letter-spacing:-1px;
 
	text-align:right;
 
	width:20px;
 
}
 
.code-difftable .lineno a{
 
font-weight: 700;
 
cursor: pointer;
 
}
 
.code-difftable .code td{
rhodecode/public/js/rhodecode.js
Show inline comments
 
@@ -298,26 +298,26 @@ var ajaxPOST = function(url,postData,suc
 
    var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
 
};
 

	
 

	
 
/** comments **/
 
var removeInlineForm = function(form) {
 
	form.parentNode.removeChild(form);
 
}
 

	
 
var tableTr = function(cls,body){
 
	var form = document.createElement('tr');
 
	YUD.addClass(form, cls);
 
	form.innerHTML = '<td class="lineno new"></td>'+
 
    				 '<td class="lineno old"></td>'+ 
 
	form.innerHTML = '<td class="lineno-inline new-inline"></td>'+
 
    				 '<td class="lineno-inline old-inline"></td>'+ 
 
                     '<td>{0}</td>'.format(body);
 
	return form;
 
}
 

	
 
var createInlineForm = function(parent_tr, f_path, line) {
 
	var tmpl = YUD.get('comment-inline-form-template').innerHTML;
 
	tmpl = tmpl.format(f_path, line);
 
	var form = tableTr('comment-form-inline',tmpl)
 
	
 
	// create event for hide button
 
	form = new YAHOO.util.Element(form);
 
	var form_hide_button = new YAHOO.util.Element(form.getElementsByClassName('hide-inline-form')[0]);
0 comments (0 inline, 0 general)