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');