From 1147f2ece8eaa868f5f0b89da583d03560ec23ee Mon Sep 17 00:00:00 2001 From: Jocelyn Delande Date: Sat, 22 Aug 2015 10:49:15 +0200 Subject: [PATCH] Ask for confirmation only for deleting users --- budget/templates/list_bills.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 1d8e922..2702d99 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -13,9 +13,13 @@ {% if add_bill %} $('#new-bill').click(); {% endif %} - // ask for confirmation before removing an user + // Hide all members actions $('.action').each(function(){ $(this).hide(); + }); + + // ask for confirmation before removing an user + $('.action.delete').each(function(){ var link = $(this).find('button'); link.click(function(){ if ($(this).hasClass("confirm")){