From a16bede398a6151f1d4c1c8c28d7f03de5bfd94e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 12 2018 08:29:12 +0000 Subject: Fix rendering comment added via JS (ajax or SSE) Basically the HTML generated in the JS wasn't in synced with the html used by the regular templates. This commit fixes that. Fixes https://pagure.io/pagure/issue/3938 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/static/request_ev.js b/pagure/static/request_ev.js index 062c5c6..7c39e6d 100644 --- a/pagure/static/request_ev.js +++ b/pagure/static/request_ev.js @@ -33,24 +33,22 @@ add_comment = function(data, username) { } else { var _csrf = $('#csrf_token').clone(); - var _data ='