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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user