bug 158435 r=ksosez sr=bz a=jesup
Page Info's label-control association is broken (should be by id). git-svn-id: svn://10.0.0.236/trunk@125577 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fbcfda6ec2
commit
4fe07a1562
@ -386,16 +386,20 @@ function onFormSelect()
|
||||
}
|
||||
|
||||
var labels = form.getElementsByTagName("label");
|
||||
var llength = labels.length
|
||||
var llength = labels.length;
|
||||
|
||||
for (i = 0; i < llength; i++)
|
||||
{
|
||||
var whatfor = labels[i].getAttribute("for") || findFirstControl(labels[i]);
|
||||
var labeltext = getValueText(labels[i]);
|
||||
var whatfor = labels[i].hasAttribute("for") ?
|
||||
theDocument.getElementById(labels[i].getAttribute("for")) :
|
||||
findFirstControl(labels[i]);
|
||||
|
||||
for(var j = 0; j < length; j++)
|
||||
if (formfields[j] == whatfor || formfields[j].name == whatfor)
|
||||
fieldView.setCellText(j, "field-label", labeltext);
|
||||
if (whatfor && (whatfor.form == form)) {
|
||||
var labeltext = getValueText(labels[i]);
|
||||
for (var j = 0; j < length; j++)
|
||||
if (formfields[j] == whatfor)
|
||||
fieldView.setCellText(j, "field-label", labeltext);
|
||||
}
|
||||
}
|
||||
|
||||
fieldView.rowCountChanged(0, length);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user