From 4f0346f17c6f388edf8ed5e454da997a8f749ba9 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 29 2016 15:49:08 +0000 Subject: Fix adding comment in a PR The HTML in the PR page changed a little and the form is no longer where we used to have it. So we add directly the comments in the request_comment section. --- diff --git a/pagure/static/request_ev.js b/pagure/static/request_ev.js index 10a5119..2fbcc1e 100644 --- a/pagure/static/request_ev.js +++ b/pagure/static/request_ev.js @@ -92,7 +92,7 @@ add_comment = function(data) { } else { // Generic comment console.log('generic'); - var field = $($('#request_comment').find('form')); + var field = $('#request_comment'); field.html(field.html() + _data); } }