1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00
ihatemoney_ynh/budget/static/ihatemoney/custom.js
Arnaud Bos 1e0898dd87 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
2011-10-20 04:18:12 +02:00

17 lines
441 B
JavaScript

// 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;
}
}
}