From 81ea61bad39a4d916b581025a2258e279e6d3fe3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 26 2016 18:44:19 +0000 Subject: Use an onsubmit() instead of an onclick() to ask the user to confirm the action --- diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 1aed123..5b7280b 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -218,10 +218,10 @@ git push -u origin master
+ }}" method="post" class="inline icon del_icon" + onsubmit="return confirm('Are you sure you want to remove the branch: {{ branch }}?\nThis cannot be un-done!');"> {{ form.csrf_token }}