campos con valor por defecto en grillas funcionando

This commit is contained in:
Alvaro Campos
2011-02-07 20:13:21 +00:00
parent b3e55e2dcb
commit abc0c7de1d
2 changed files with 5 additions and 5 deletions

View File

@@ -179,9 +179,9 @@ var G_Grid = function(oForm, sGridName) {
attributDefaultValue=attributes.defaultvalue;
} else {
scriptTags = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('script');
attributes = elementAttributesNS(aObjects[0]);
if(attributes.value != undefined)
attributDefaultValue=attributes.value;
attributes = elementAttributesNS(aObjects[0],'pm');
if(attributes.defaultvalue != undefined)
attributDefaultValue=attributes.defaultvalue;
else
attributDefaultValue='';
}