BUG 6684 Solved. Grid View Mode Fixed.

This commit is contained in:
Enrique Ponce De Leon
2011-04-08 12:16:46 -04:00
parent e82ee5027c
commit 9c99e11942
2 changed files with 381 additions and 247 deletions

View File

@@ -293,7 +293,8 @@ var G_Grid = function(oForm, sGridName){
aObjects[0].value = defaultValue;
break;
case 'hidden': //HIDDEN
aObjects[0].value = defaultValue;
if ((attributes.gridtype != 'yesno' && attributes.gridtype != 'dropdown') || typeof attributes.gridtype == 'undefined')
aObjects[0].value = defaultValue;
break;
}
}
@@ -393,6 +394,12 @@ var G_Grid = function(oForm, sGridName){
//TODO: Implement Default Value and Dependent Fields Trigger for grid dropdowns
}
}
aObjects = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('input');
if (aObjects.length > 0){
newID = aObjects[0].id.replace(/\[1\]/g, '\[' + currentRow + '\]');
aObjects[0].id = newID;
aObjects[0].name = newID;
}
aObjects = null;
break;
case 'a': //LINKS