# HG changeset patch # User Marcin Kuzminski # Date 2011-11-20 21:53:25 # Node ID 3efc47f59639f6284fc3cc1bb93e93b15cca78e3 # Parent f23828b00b21cbf4b66a4022e083229cf9a9a008 inline comment form is displayed now under all comments. diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css +++ b/rhodecode/public/css/style.css @@ -3456,6 +3456,9 @@ form.comment-inline-form { color: #666; font-size: 16px; } +.inline-comments-button .add-comment{ + margin:10px 5px !important; +} .notifications{ width:22px; padding:2px; diff --git a/rhodecode/templates/changeset/changeset.html b/rhodecode/templates/changeset/changeset.html --- a/rhodecode/templates/changeset/changeset.html +++ b/rhodecode/templates/changeset/changeset.html @@ -217,8 +217,6 @@ YUD.setStyle(comments[c],'display',show); } }) - - YUE.on(YUQ('.line'),'click',function(e){ var tr = e.currentTarget; @@ -230,7 +228,12 @@ var f_path = YUD.getAttribute(node,'path'); var lineno = getLineNo(tr); var form = createInlineForm(tr, f_path, lineno); - YUD.insertAfter(form,tr); + var target_tr = tr; + if(YUD.hasClass(YUD.getNextSibling(tr),'inline-comments')){ + target_tr = YUD.getNextSibling(tr); + } + YUD.insertAfter(form,target_tr); + YUD.get('text_'+lineno).focus() }); // inject comments into they proper positions @@ -241,12 +244,13 @@ var inlines = box.children; for(var i=0; i
${_('Commenting on line')} {1} ${_('comments parsed using')} RST ${_('syntax')}
- ${h.textarea('text')} +