fix hiding cloneBtn
This commit is contained in:
parent
d762ebde61
commit
2996fe3da7
|
@ -1,10 +1,10 @@
|
||||||
function setButtonStates( element ) {
|
function setButtonStates(element) {
|
||||||
var form = element.form;
|
var form = element.form;
|
||||||
var checked = 0;
|
var checked = 0;
|
||||||
for ( var i=0; i < form.elements.length; i++ ) {
|
for ( var i=0; i < form.elements.length; i++ ) {
|
||||||
if (
|
if (
|
||||||
form.elements[i].type=="checkbox" &&
|
form.elements[i].type == "checkbox" &&
|
||||||
form.elements[i].name=="markMids[]"
|
form.elements[i].name == "markMids[]"
|
||||||
) {
|
) {
|
||||||
var tr = $j(form.elements[i]).closest("tr");
|
var tr = $j(form.elements[i]).closest("tr");
|
||||||
if ( form.elements[i].checked ) {
|
if ( form.elements[i].checked ) {
|
||||||
|
@ -22,10 +22,10 @@ function setButtonStates( element ) {
|
||||||
if ( checked == 1 ) {
|
if ( checked == 1 ) {
|
||||||
$j(form.cloneBtn).css('display', 'inline');
|
$j(form.cloneBtn).css('display', 'inline');
|
||||||
} else {
|
} else {
|
||||||
form.cloneBtn.hide();
|
$j(form.cloneBtn).hide();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
form.cloneBtn.hide();
|
$j(form.cloneBtn).hide();
|
||||||
form.editBtn.disabled = true;
|
form.editBtn.disabled = true;
|
||||||
form.deleteBtn.disabled = true;
|
form.deleteBtn.disabled = true;
|
||||||
form.selectBtn.disabled = true;
|
form.selectBtn.disabled = true;
|
||||||
|
|
Loading…
Reference in New Issue