aboutsummaryrefslogtreecommitdiff
path: root/budget/static/ihatemoney/custom.js
diff options
context:
space:
mode:
authorArnaud Bos <arnaud.tlse@gmail.com>2011-10-20 04:18:12 +0200
committerArnaud Bos <arnaud.tlse@gmail.com>2011-10-20 04:18:12 +0200
commit1e0898dd8770a19c45c934c4683def77b9497b3e (patch)
treedea515e23dedc51b9bf07504d589ea9f9d7e9edc /budget/static/ihatemoney/custom.js
parent440ccb6e220f1cd7ea7f15de6f46c4a98e51d47c (diff)
downloadihatemoney-mirror-1e0898dd8770a19c45c934c4683def77b9497b3e.zip
ihatemoney-mirror-1e0898dd8770a19c45c934c4683def77b9497b3e.tar.gz
ihatemoney-mirror-1e0898dd8770a19c45c934c4683def77b9497b3e.tar.bz2
Last selected payer and translations. Fix #47.
- Last selected payer selected by default when creating a new bill - Fix some translation typos and modify a few labels
Diffstat (limited to 'budget/static/ihatemoney/custom.js')
-rw-r--r--budget/static/ihatemoney/custom.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/budget/static/ihatemoney/custom.js b/budget/static/ihatemoney/custom.js
new file mode 100644
index 0000000..6a813b9
--- /dev/null
+++ b/budget/static/ihatemoney/custom.js
@@ -0,0 +1,17 @@
+ // Add a script to select all or non of the checkboxes in the add_bill form
+ function toggle()
+ {
+ var els = document.getElementsByName('payed_for');
+ for(var i =0;i<els.length;i++)
+ {
+ if(document.getElementById('toggleField').checked)
+ {
+ els[i].checked=true;
+ }
+ else
+ {
+ els[i].checked=false;
+ }
+ }
+ }
+