BUG 8334 was added to the grid the functionality of checkbox

This commit is contained in:
Alvaro Campos
2012-02-14 19:04:46 -04:00
parent ec9875d537
commit 187eb2e9a1
4 changed files with 40 additions and 19 deletions

View File

@@ -307,9 +307,12 @@ var G_Grid = function(oForm, sGridName){
}
}
break;
case 'checkbox': //CHECKBOX
aObjects[n].checked = false;
aObjects[n].value = defaultValue;
case 'checkbox': //CHECKBOX
attributesFalse = elementAttributesNS(aObjects[0], '');
if((defaultValue === attributesFalse.falsevalue) || (defaultValue===''))
aObjects[n].checked = false;
else
aObjects[n].checked = true;
break;
case 'hidden': //HIDDEN
if ((attributes.gridtype != 'yesno' && attributes.gridtype != 'dropdown') || typeof attributes.gridtype == 'undefined')