BUG 6607 SOLVED. Update label messages for IE

This commit is contained in:
Enrique Ponce De Leon
2011-04-06 16:09:25 -04:00
parent a240eea0e8
commit f33b2d6fb0

View File

@@ -167,18 +167,43 @@ var G_Grid = function(oForm, sGridName){
txt = txt.replace('<',''); txt = txt.replace('<','');
txt = txt.replace('/>',''); txt = txt.replace('/>','');
txt = txt.replace('>',''); txt = txt.replace('>','');
aux4 = txt.toLowerCase();
aux4 = aux4.replace(' ','');
sw_display = false;
if ((aux4.indexOf ('display:none') > 0) || (aux4.indexOf('display: none')>0)){
sw_display = true;
}
pTxt = txt.split('="');
for (v=1; v < pTxt.length; v++){
aux = pTxt[v];
if (pos = aux.indexOf('"')){
aux2 = aux.substr(0,pos);
aux3 = aux2.replace(' ','[%space$]');
pTxt[v] = aux.replace(aux2, aux3);
}
}
txt = pTxt.join('="');
aTxt = txt.split(' '); aTxt = txt.split(' ');
newField = document.createElement('<INPUT id="' + oNewObject.id + '" name="' + oNewObject.id + '" class=' + xClass + ' >'); if (sw_display)
xElement = '<INPUT id="' + oNewObject.id + '" name="' + oNewObject.id + '" class=' + xClass + ' style="display: none" >';
else
xElement = '<INPUT id="' + oNewObject.id + '" name="' + oNewObject.id + '" class=' + xClass + ' >';
newField = document.createElement(xElement);
for (var a=0; a < aTxt.length; a++){ for (var a=0; a < aTxt.length; a++){
if (aTxt[a].indexOf('=')>0){ if (aTxt[a].indexOf('=')>0){
aVals = aTxt[a].split('='); aVals = aTxt[a].split('=');
if (aVals[0] != 'id' && aVals[0] != 'name' && aVals[0] != 'class'){ if (aVals[0] != 'id' && aVals[0] != 'name' && aVals[0] != 'class' && aVals[0] != 'style'){
newField.setAttribute(aVals[0], aVals[1].replace('"','').replace('"','')); newField.setAttribute(aVals[0], aVals[1].replace('"','').replace('"','').replace('[%space$]',' '));
} }
} }
} }
return newField; return newField;
}; };