aboutsummaryrefslogtreecommitdiff
path: root/budget
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-10-08 17:13:36 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-10-08 17:13:36 +0200
commit5245a1a6c7f0175a198e67580d252ef218be405f (patch)
treeceb73b869c078bd470b7a00a7672e240d50a5376 /budget
parent7d9fde0460b66850ef1d7bce22c09156216539cd (diff)
downloadihatemoney-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.css4
-rw-r--r--budget/templates/list_bills.html7
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;
});
});