\
- \
-
\
-
\
-
';
- if (data.comment_id) {
- _data += '\
-
\
- \
- ';
- }
- if ( data.comment_user == username && data.comment_id) {
- _data += edit_btn +
- '
';
- }
- _data += '
\
-
\
-
\
-
\
- ';
+ + '/comment/drop" method="post" onsubmit="return try_async_comment(this, null)">'
+ + '
'
+ + ' '
+ + '
'
+ + ' '
+ + '
'
+ + ' '
+ + '
'
+ + '
'
+ + ''
+
}
if (inline){
// Inline comment
console.log('Inline');
+
+ //add comment to files changed tab
var field = $('[data-commit="' + data.commit_id + '"]').parent();
var id = field.children().children().attr('id').split('_')[0];
var row = $('#' + id + '_' + (parseInt(data.line) + 1)).parent().parent();
- row.before(_data);
+ row.after('
| '+_data+' |
');
+ console.log(row);
+
+ //add comment to comments tab
+ var cfield = $('#request_comment');
+ cfield.html(cfield.html() + _data);
+
} else {
// Generic comment
console.log('generic');
diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html
index 9927051..4afdb6c 100644
--- a/pagure/templates/_formhelper.html
+++ b/pagure/templates/_formhelper.html
@@ -107,7 +107,7 @@
{% endmacro %}
-{% macro show_comment(comment, id, repo, username, issueid, form) %}
+{% macro show_comment(comment, id, repo, username, issueid, form, PRinline=False) %}