mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
be32a2550e
Remove unused libs (QTip, JQueryUI) and add bootstrap-datepicker which is much lighter.
17 lines
441 B
JavaScript
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;
|
|
}
|
|
}
|
|
}
|
|
|