aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/static/js/ihatemoney.js
diff options
context:
space:
mode:
Diffstat (limited to 'ihatemoney/static/js/ihatemoney.js')
-rw-r--r--ihatemoney/static/js/ihatemoney.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/ihatemoney/static/js/ihatemoney.js b/ihatemoney/static/js/ihatemoney.js
new file mode 100644
index 0000000..24e82b7
--- /dev/null
+++ b/ihatemoney/static/js/ihatemoney.js
@@ -0,0 +1,18 @@
+ // Add scripts to select all or non of the checkboxes in the add_bill form
+function selectall()
+ {
+ var els = document.getElementsByName('payed_for');
+ for(var i =0;i<els.length;i++)
+ {
+ els[i].checked=true;
+ }
+ }
+function selectnone()
+ {
+ var els = document.getElementsByName('payed_for');
+ for(var i =0;i<els.length;i++)
+ {
+ els[i].checked=false;
+ }
+ }
+