fix hiding cloneBtn

This commit is contained in:
Isaac Connor 2021-02-02 09:20:04 -05:00
parent d762ebde61
commit 2996fe3da7
1 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
function setButtonStates( element ) {
function setButtonStates(element) {
var form = element.form;
var checked = 0;
for ( var i=0; i < form.elements.length; i++ ) {
if (
form.elements[i].type=="checkbox" &&
form.elements[i].name=="markMids[]"
form.elements[i].type == "checkbox" &&
form.elements[i].name == "markMids[]"
) {
var tr = $j(form.elements[i]).closest("tr");
if ( form.elements[i].checked ) {
@ -22,10 +22,10 @@ function setButtonStates( element ) {
if ( checked == 1 ) {
$j(form.cloneBtn).css('display', 'inline');
} else {
form.cloneBtn.hide();
$j(form.cloneBtn).hide();
}
} else {
form.cloneBtn.hide();
$j(form.cloneBtn).hide();
form.editBtn.disabled = true;
form.deleteBtn.disabled = true;
form.selectBtn.disabled = true;