aboutsummaryrefslogtreecommitdiff
path: root/budget
diff options
context:
space:
mode:
authorArnaud Bos <arnaud.tlse@gmail.com>2011-11-02 13:20:00 +0100
committerArnaud Bos <arnaud.tlse@gmail.com>2011-11-02 13:20:00 +0100
commitac2935b429358440fc911a80d10f0afda583d679 (patch)
treeb44edf223e9ae75576395bc034d4291bb033a4b5 /budget
parentf3972db96a718413b66efba1e4a0d0339222d83d (diff)
downloadihatemoney-mirror-ac2935b429358440fc911a80d10f0afda583d679.zip
ihatemoney-mirror-ac2935b429358440fc911a80d10f0afda583d679.tar.gz
ihatemoney-mirror-ac2935b429358440fc911a80d10f0afda583d679.tar.bz2
Ease "Add a bill" form occurrence with slideUp/slideDown effects. Related to #53.
Diffstat (limited to 'budget')
-rw-r--r--budget/templates/list_bills.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index 18b3637..d9bbd66 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -16,15 +16,17 @@
// display the form when clicking on the "add bill" button
var show_form = function(){
- $('#bill-form').show(70);
+ $('#bill-form').slideDown(1000);
+ $("#hide-bill-form").show();
$("#new-bill").hide();
return false;
}
// and provide a mechanism to hide it back
var hide_form = function(){
- $("#bill-form").hide(70);
+ $("#bill-form").slideUp(1000);
$("#new-bill").show();
+ $("#hide-bill-form").hide();
return false;
}
@@ -138,7 +140,7 @@
<a id="new-bill" href="{{ url_for(".add_bill") }}" class="btn primary">{{ _("Add a new bill") }}</a>
<form id="bill-form" action="{{ url_for(".add_bill") }}" method="post" style="display: none">
- <a id="hide-bill-form" href="#">{{ _("hide this form") }}</a>
+ <a class="btn primary" id="hide-bill-form" href="#">{{ _("hide this form") }}</a>
{{ forms.add_bill(bill_form) }}
</form>