diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-08 17:13:36 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-08 17:13:36 +0200 |
| commit | 5245a1a6c7f0175a198e67580d252ef218be405f (patch) | |
| tree | ceb73b869c078bd470b7a00a7672e240d50a5376 /budget | |
| parent | 7d9fde0460b66850ef1d7bce22c09156216539cd (diff) | |
| download | ihatemoney-mirror-5245a1a6c7f0175a198e67580d252ef218be405f.zip ihatemoney-mirror-5245a1a6c7f0175a198e67580d252ef218be405f.tar.gz ihatemoney-mirror-5245a1a6c7f0175a198e67580d252ef218be405f.tar.bz2 | |
Do not prompt the user with a 'prompt()' in javascript when deleting members. Fix #29
Diffstat (limited to 'budget')
| -rw-r--r-- | budget/static/main.css | 4 | ||||
| -rw-r--r-- | budget/templates/list_bills.html | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/budget/static/main.css b/budget/static/main.css index fc8d284..9726e47 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 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; }); }); |
