diff --git a/budget/static/main.css b/budget/static/main.css index fc8d284c..9726e475 100644 --- a/budget/static/main.css +++ b/budget/static/main.css @@ -104,3 +104,7 @@ div.topbar ul.secondary-nav { padding-right: 75px; } margin-right: 20px; margin-top: 5px; } + +.confirm, .confirm:hover { + color: red; +} diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 63a89160..f37e1fe4 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; }); });