From 5245a1a6c7f0175a198e67580d252ef218be405f Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sat, 8 Oct 2011 17:13:36 +0200 Subject: Do not prompt the user with a 'prompt()' in javascript when deleting members. Fix #29 --- budget/templates/list_bills.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'budget/templates/list_bills.html') diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 63a8916..f37e1fe 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -24,7 +24,12 @@ $('a.remove').each(function(){ $(this).hide(); $(this).click(function(){ - return confirm("are you sure?"); + if ($(this).hasClass("confirm")){ + return true; + } + $(this).html("you sure?"); + $(this).addClass("confirm"); + return false; }); }); -- cgit v1.1