changeset 7176:17c999c48ab6

pullrequests: fix broken delete button on overview list 428c1193ee40 changed the "Delete" button on the pull request overview page to no longer be a "submit" button. That broke the functionality: In order for the form to be submitted, the button needs to be of type submit. Change it back to "submit".
author domruf <dominikruf@gmail.com>
date Tue, 30 Jan 2018 18:44:25 +0100
parents bedccdc47bd9
children 124600ca326e
files kallithea/templates/pullrequests/pullrequest_data.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/pullrequests/pullrequest_data.html	Wed Feb 21 01:27:43 2018 +0100
+++ b/kallithea/templates/pullrequests/pullrequest_data.html	Tue Jan 30 18:44:25 2018 +0100
@@ -61,7 +61,7 @@
       <td>
         %if pr.owner_id == request.authuser.user_id:
           ${h.form(url('pullrequest_delete', repo_name=pr.other_repo.repo_name, pull_request_id=pr.pull_request_id))}
-          <button type="button" class="btn btn-link btn-xs"
+          <button type="submit" class="btn btn-link btn-xs"
                   id="remove_${pr.pull_request_id}"
                   name="remove_${pr.pull_request_id}"
                   title="${_('Delete Pull Request')}"