bug 1357 involving a hidden control not getting submitted

git-svn-id: svn://10.0.0.236/trunk@14633 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
1998-11-13 23:10:52 +00:00
parent ac22156a81
commit 65b6034ae6

View File

@@ -69,7 +69,9 @@ nsButtonControlFrame::GetDefaultLabel(nsString& aString)
PRBool
nsButtonControlFrame::IsSuccessful(nsIFormControlFrame* aSubmitter)
{
if (this == (aSubmitter)) {
PRInt32 type;
GetType(&type);
if ((NS_FORM_INPUT_HIDDEN == type) || (this == aSubmitter)) {
return nsFormControlFrame::IsSuccessful(aSubmitter);
} else {
return PR_FALSE;