# HG changeset patch # User Marcin Kuzminski # Date 2019-11-08 16:40:46 # Node ID c11100bc33a5537c6c3d7f757eba089e8728aacf # Parent 650607ebf75e4733248e9b89f76aefdca52b1b91 pull-requests: confirm close without merge diff --git a/rhodecode/templates/pullrequests/pullrequest_show.mako b/rhodecode/templates/pullrequests/pullrequest_show.mako --- a/rhodecode/templates/pullrequests/pullrequest_show.mako +++ b/rhodecode/templates/pullrequests/pullrequest_show.mako @@ -684,6 +684,9 @@ }; closePullRequest = function (status) { + if (!confirm(_gettext('Are you sure to close this pull request without merging?'))) { + return false; + } // inject closing flag $('.action-buttons-extra').append(''); $(generalCommentForm.statusChange).select2("val", status).trigger('change');