Fixed problem with the backspace key in IE8 into text fields with masks on grids

This commit is contained in:
Alvaro Campos
2011-01-18 13:57:53 +00:00
parent 9487cc3a2e
commit 129867e0d2

View File

@@ -164,9 +164,11 @@ var G_Grid = function(oForm, sGridName) {
newID = aObjects[0].id.replace(/\[1\]/g, '\[' + (this.oGrid.rows.length - 2) + '\]');
aObjects[0].setAttribute('id', newID);
aObjects[0].setAttribute('value', '');
aObjects[0].name = newID;
if (/*@cc_on!@*/0) { // Internet Explorer test (needs to be modified for IE8)
aObjects[0].mergeAttributes(document.createElement("<INPUT id='" + newID + "' name='" + newID + "'/>"), false);
aObjects[0].mergeAttributes(document.createElement("<INPUT id='" + newID + "' name='" + newID + "'/>"), false);
var aux = oNewRow.getElementsByTagName('td')[i].innerHTML;
}
//alert(aObjects[0].name);
@@ -260,8 +262,10 @@ var G_Grid = function(oForm, sGridName) {
}
}
}
// alert(oNewRow.getElementsByTagName('td')[i].innerHTML);
if (/*@cc_on!@*/0) {
oNewRow.getElementsByTagName('td')[i].innerHTML = aux;
}
// alert(oNewRow.getElementsByTagName('td')[i].innerHTML);
break;
case 'select':
aObjects = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('select');