From c2a3e5faf8b291aa8b8bda562646b93516f8f3c2 Mon Sep 17 00:00:00 2001 From: Nils VAN ZUIJLEN Date: Thu, 13 Jun 2019 12:01:28 +0200 Subject: [PATCH] Add confirm prompt on poll deletion --- poll/templates/poll/admin/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/poll/templates/poll/admin/index.html b/poll/templates/poll/admin/index.html index 1f5234c0..f2d73045 100644 --- a/poll/templates/poll/admin/index.html +++ b/poll/templates/poll/admin/index.html @@ -35,7 +35,9 @@ } function del(){ - queryJson('delete', {"pid": evt['id']}, update_list); + if (confirm("Êtes vous sûr ?")) { + queryJson('delete', {"pid": evt['id']}, update_list); + } } return [ new PollList.Action('Details', details), -- GitLab