fixed bug 958, checkboxes wrong background when not checked, select always multiple, text & texarea not reset. html 4 button work in progress.

This commit is contained in:
karnaze@netscape.com
1998-10-13 21:31:26 +00:00
parent 140e601e88
commit f9fc54790e
38 changed files with 1417 additions and 80 deletions
@@ -255,7 +255,8 @@ nsButtonControlFrame::MouseClicked(nsIPresContext* aPresContext)
mFormFrame->OnReset();
}
else if ((NS_FORM_INPUT_SUBMIT == type) || (NS_FORM_INPUT_IMAGE == type)) {
else if ((NS_FORM_INPUT_SUBMIT == type) ||
((NS_FORM_INPUT_IMAGE == type) && !nsFormFrame::GetDisabled(this))) {
//Send DOM event
nsEventStatus mStatus;
nsEvent mEvent;
@@ -373,6 +374,7 @@ nsButtonControlFrame::PostCreateWidget(nsIPresContext* aPresContext)
button->SetLabel(label);
}
}
mWidget->Enable(!nsFormFrame::GetDisabled(this));
NS_RELEASE(button);
}
}