From 607c635d2b28c9b57fa0b00dcb2280483137a60b Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Mar 11 2019 12:02:49 +0000 Subject: templates/pull_request: use different id for inline comment to avoid messing with the main comment box --- diff --git a/pagure/templates/pull_request_comment.html b/pagure/templates/pull_request_comment.html index 7cc9657..1f6702c 100644 --- a/pagure/templates/pull_request_comment.html +++ b/pagure/templates/pull_request_comment.html @@ -16,7 +16,7 @@ id="comment_block">
- diff --git a/pagure/templates/repo_pull_request.html b/pagure/templates/repo_pull_request.html index 6c57da1..e73268b 100644 --- a/pagure/templates/repo_pull_request.html +++ b/pagure/templates/repo_pull_request.html @@ -1172,7 +1172,7 @@ function try_async_comment(form, inline) { /* Keep some variable in memory before sending them in case the SSE is down */ var _update = false; - var _comment = $(form).find('#comment').val(); + var _comment = inline ? $(form).find('#inline-comment').val() : $(form).find('#comment').val(); var _comment_id = null; if (!_comment && form.update_comment) { _update = true;