diff --git a/pagure/static/request_ev.js b/pagure/static/request_ev.js index 14bd438..6f8d64d 100644 --- a/pagure/static/request_ev.js +++ b/pagure/static/request_ev.js @@ -59,7 +59,7 @@ add_comment = function(data) { } else { // Generic comment console.log('generic'); - var field = $('#request_comment'); + var field = $($('#request_comment').find('form')); field.html(field.html() + _data); } } diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index e4688a0..a911dfa 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -32,18 +32,18 @@ {{ show_initial_comment(issue, 0, repo, username, issueid, form, issue) }} -
-
{{ form.csrf_token }} +
{% if issue.comments %} {% for comment in issue.comments %} {{ show_comment(comment, comment.id, repo, username, issueid, form, repo_admin) }} {% endfor %} {% endif %} - -
+
+
@@ -283,7 +283,6 @@ function setup_reply_btns() { ); }; - $(document).ready(function() { var cur_hash = null;