2008-07-14 21:54:50 +08:00
|
|
|
function configureButton( element )
|
|
|
|
{
|
2008-09-01 22:05:06 +08:00
|
|
|
var form = element.form;
|
2008-07-14 21:54:50 +08:00
|
|
|
var checked = element.checked;
|
|
|
|
if ( !element.checked )
|
|
|
|
{
|
|
|
|
for ( var i = 0; i < form.elements.length; i++ )
|
|
|
|
{
|
|
|
|
if ( form.elements[i].name.indexOf(element.name) == 0 )
|
|
|
|
{
|
|
|
|
if ( form.elements[i].checked )
|
|
|
|
{
|
|
|
|
checked = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
form.deleteBtn.disabled = !checked;
|
|
|
|
}
|