This commit is contained in:
Isaac Connor 2016-04-15 12:50:51 -04:00
parent 1e8450ecbf
commit b57abb4e54
1 changed files with 2 additions and 13 deletions

View File

@ -11,19 +11,8 @@ function setButtonStates( element )
if ( checked++ > 1 )
break;
}
}
else if ( form.elements[i].length )
{
for( var j = 0, j_length = form.elements[i].length; j < j_length; j += 1 ) {
if ( form.elements[j].type == "checkbox" ) {
if ( form.elements[j].checked ) {
if ( checked++ > 1 )
break;
}
}
} // end foreach element in array
}
} // end foreach element in array
}
}
$(element).getParent( 'tr' ).toggleClass( 'highlight' );
form.editBtn.disabled = (checked!=1);
form.deleteBtn.disabled = (checked==0);