From: Andre Eisenbach <andre@ei...> - 2004-06-08 21:37:34
Jacob Coby wrote:
>Attached patch disables the submit form on the bug report and advanced
>bug report pages. Works on gecko based and IE. Haven't tested on
>khtml based browsers.
Is the intent to prevent multiple submittions by overzealous users? Neat.
What about accidental "enter" pressers?
It does nothing in a memo box, but submits the form if on an edit box?
Not complaining - just asking - is that a good thing?
> -----Original Message-----
> From: mantisbt-dev-admin@...
> [mailto:mantisbt-dev-admin@...]On Behalf Of Jacob Coby
> Sent: Tuesday, June 08, 2004 2:59 PM
> To: mantisbt-dev@...
> Subject: Re: Re: [Mantisbt-dev] [patch] Disable Submit Button after
> On Tue, 08 Jun 2004 14:35:24 -0700, Andre Eisenbach
> <andre@...> wrote:
> New patch attached.
From: Jacob Coby <jacob.coby@gm...> - 2004-06-09 02:51:59
On Tue, 8 Jun 2004 16:13:07 -0700, Mitch (WebCob) <mitch@...> wrote:
> Is the intent to prevent multiple submittions by overzealous users? Neat.
Yup. At least that's what I gleaned was wanted from the roadmap.
> What about accidental "enter" pressers?
Those are also form submissions. They'll disable the submit box.
Using the back button re-enables it, so I don't think it's an issue.
> It does nothing in a memo box, but submits the form if on an edit box?
> Not complaining - just asking - is that a good thing?
That's how HTML forms work. It's actually hard (and impossible with
Netscape4, IIRC) to make the form NOT submit when you hit enter on a
non-text box/non-button. Try hitting enter after giving any form item
focus on any website. Most of them will submit the form. Some
override the form.onsubmit event to return false if the submit button
isn't pressed to prevent [enter] from sending the form.
I actually use the behavior in mantis. After adding a bugnote, I hit
[tab] to take me to the "private" checkbox and hit enter to add the
bugnote. Saves me a keypress ;-)