From 05df3471108db9ef364bee8452e7abefc7117652 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 14 2016 15:02:01 +0000 Subject: Fix the "cancel" button when editing a "regular" comment on a pull-request Fixes https://pagure.io/pagure/issue/1416 --- diff --git a/pagure/templates/comment_update.html b/pagure/templates/comment_update.html index 3890a00..a015cb1 100644 --- a/pagure/templates/comment_update.html +++ b/pagure/templates/comment_update.html @@ -5,7 +5,7 @@ {% block repo %}
-
diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 739ab54..daf7865 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -822,7 +822,7 @@ function cancel_edit_btn() { item = $(this).closest('section'); $(item.parent().find('.issue_comment')).show(); $(item.parent().find('.issue_actions')).show(); - $(item.parent().closest('.pr_comment_form')).remove(); + $(item.parent().find('.pr_comment_form')).remove(); return false; } );