Fix setfocus for non-bound controls. Bug 299793, r=aaronr+smaug, a=mkaply, NPOTB

git-svn-id: svn://10.0.0.236/trunk@176087 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
allan%beaufour.dk
2005-07-14 10:33:53 +00:00
parent f7876be31f
commit 511bcaada8

View File

@@ -465,6 +465,11 @@ nsXFormsControlStubBase::Create(nsIXTFElementWrapper *aWrapper)
ResetHelpAndHint(PR_TRUE);
// enabled is on pr. default
///
/// @bug This is only a hack until bug 271720 is landed (XXX)
mElement->SetAttribute(kStateAttributes[6], NS_LITERAL_STRING("1"));
#ifdef DEBUG_smaug
sControlList->AppendElement(this);
#endif
@@ -595,6 +600,11 @@ nsXFormsControlStubBase::ResetProperties()
for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(kStateAttributes); ++i) {
mElement->RemoveAttribute(kStateAttributes[i]);
}
// enabled is on pr. default
///
/// @bug This is only a hack until bug 271720 is landed (XXX)
mElement->SetAttribute(kStateAttributes[6], NS_LITERAL_STRING("1"));
}
void