aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/list_bills.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-08-10 23:55:07 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-08-10 23:55:07 +0200
commit402d756bf1e54236164643f2484e8fa9c78dc6d8 (patch)
treebc23a3c97194eb5a729717f180de3a14f3566678 /budget/templates/list_bills.html
parent065fe965a00b48706f2066bc32a84b0c29ff1962 (diff)
downloadihatemoney-mirror-402d756bf1e54236164643f2484e8fa9c78dc6d8.zip
ihatemoney-mirror-402d756bf1e54236164643f2484e8fa9c78dc6d8.tar.gz
ihatemoney-mirror-402d756bf1e54236164643f2484e8fa9c78dc6d8.tar.bz2
Make flash messages go away after 2 seconds.
Diffstat (limited to 'budget/templates/list_bills.html')
-rw-r--r--budget/templates/list_bills.html53
1 files changed, 25 insertions, 28 deletions
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index 7e96ca7..fe564e1 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -1,38 +1,35 @@
{% extends "layout.html" %}
{% block js %}
-$(document).ready(function(){
-
- // display the form when clicking on the "add bill" button
- $('#add_bill_button').click(function(){
- $('#add_bill').show(200);
- $(this).hide();
- $('#hide_bill_form').show();
- return false;
- });
+// display the form when clicking on the "add bill" button
+$('#add_bill_button').click(function(){
+ $('#add_bill').show(200);
+ $(this).hide();
+ $('#hide_bill_form').show();
+ return false;
+});
- // and provide a mechanism to hide it back
- $('#hide_bill_form').click(function(){
- $('#add_bill').hide(200);
- $(this).hide();
- $('#add_bill_button').show();
- return false;
- });
+// and provide a mechanism to hide it back
+$('#hide_bill_form').click(function(){
+ $('#add_bill').hide(200);
+ $(this).hide();
+ $('#add_bill_button').show();
+ return false;
+});
- // ask for confirmation before removing an user
- $('a.remove').each(function(){
- $(this).hide();
- $(this).click(function(){
- return confirm("are you sure?");
- });
+// ask for confirmation before removing an user
+$('a.remove').each(function(){
+ $(this).hide();
+ $(this).click(function(){
+ return confirm("are you sure?");
});
+});
- // display the remove button on mouse over (and hide them per default)
- $('.members li').hover(function(){
- $(this).children('a.remove').show();
- }, function(){
- $(this).children('a.remove').hide();
- });
+// display the remove button on mouse over (and hide them per default)
+$('.members li').hover(function(){
+ $(this).children('a.remove').show();
+}, function(){
+ $(this).children('a.remove').hide();
});
{% endblock %}