mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-31 15:21:38 +01:00
16 lines
360 B
JavaScript
16 lines
360 B
JavaScript
|
|
function selectAll() {
|
|
for(i=0;i<document.forms[0].elements.length;i++)
|
|
{ var e = document.forms[0].elements[i];
|
|
if(e.type == 'checkbox')
|
|
{ e.checked = true; }
|
|
}
|
|
}
|
|
function unSelectAll() {
|
|
for(i=0;i<document.forms[0].elements.length;i++)
|
|
{ var e = document.forms[0].elements[i];
|
|
if(e.type == 'checkbox')
|
|
{ e.checked = false; }
|
|
}
|
|
}
|