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