aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Delande <jocelyn@crapouillou.net>2015-08-22 10:49:15 +0200
committerJocelyn Delande <jocelyn@crapouillou.net>2016-06-15 10:20:37 +0200
commit1147f2ece8eaa868f5f0b89da583d03560ec23ee (patch)
treea3ebcef15591f2920d232f15bde0e7febaec35cd
parent85abc0b1fcbee6549425fad87b3cdd55669672d2 (diff)
downloadihatemoney-mirror-1147f2ece8eaa868f5f0b89da583d03560ec23ee.zip
ihatemoney-mirror-1147f2ece8eaa868f5f0b89da583d03560ec23ee.tar.gz
ihatemoney-mirror-1147f2ece8eaa868f5f0b89da583d03560ec23ee.tar.bz2
Ask for confirmation only for deleting users
-rw-r--r--budget/templates/list_bills.html6
1 files changed, 5 insertions, 1 deletions
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")){