This bug 4553 was solved, added a parameter defaultvalue, this property is working

This commit is contained in:
Carlos Pacha
2011-01-27 22:34:53 +00:00
parent 8fc53ed051
commit 345f3d9f7b
2 changed files with 15 additions and 5 deletions

View File

@@ -171,9 +171,18 @@ var G_Grid = function(oForm, sGridName) {
var aux = oNewRow.getElementsByTagName('td')[i].innerHTML;
}
//alert(aObjects[0].name);
if (aObjects[0].type != 'checkbox') {
tags = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('a');
if( tags.length == 0 ){ //then it is a datepicker
scriptTags = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('script');
attributes = elementAttributesNS(aObjects[0], 'pm');
if(attributes.defaultvalue!= undefined)
attributDefaultValue=attributes.defaultvalue;
}
if (aObjects[0].type != 'checkbox' ) {
if(attributDefaultValue!='')
aObjects[0].value = attributDefaultValue;
else
aObjects[0].value = '';
} else {
aObjects[0].checked = false;