diff --git a/web/skins/classic/views/js/console.js b/web/skins/classic/views/js/console.js index 5182a5fd5..0bdf18ce4 100644 --- a/web/skins/classic/views/js/console.js +++ b/web/skins/classic/views/js/console.js @@ -12,7 +12,17 @@ function setButtonStates( element ) 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 + } $(element).getParent( 'tr' ).toggleClass( 'highlight' ); form.editBtn.disabled = (checked!=1); form.deleteBtn.disabled = (checked==0);