post submission, file content submission

This commit is contained in:
karnaze
1998-05-27 17:51:41 +00:00
parent b5e00ab0da
commit 32a3d015a3
21 changed files with 732 additions and 102 deletions

View File

@@ -155,7 +155,7 @@ nsInputButton::~nsInputButton()
PRBool nsInputButton::IsSuccessful(nsIFormControl* aSubmitter) const
{
if ((void*)&mControl == (void*)aSubmitter) {
if ((kButton_Hidden == mType) || ((void*)&mControl == (void*)aSubmitter)) {
return nsInputButtonSuper::IsSuccessful(aSubmitter);
}
return PR_FALSE;
@@ -181,6 +181,7 @@ void nsInputButton::GetType(nsString& aResult) const
return;
}
// XXX put these and other literals into statics (e.g. gBUTTON_TYPE)
switch (mType) {
case kButton_Button:
aResult.Append("button");