Closed Bug 301071 Opened 19 years ago Closed 18 years ago

Front page quicksearch uses onclick on the button instead of onsubmit on the form

Categories

(bugzilla.mozilla.org :: General, defect, P2)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: Gavin, Assigned: reed)

References

()

Details

Attachments

(1 file)

I've diffed against the attachment in bug 279823.
Summary: Front page quicksearch users onclick on the button instead of onsubmit on the form → Front page quicksearch uses onclick on the button instead of onsubmit on the form
Assignee: justdave → wurblzap
Argh. Sorry, I didn't mean to steal a b.m.o bug.
Assignee: wurblzap → justdave
Priority: -- → P2
Why is onsubmit() preferable to onclick()? Does onclick() not fire sometimes? Or is it an accessibility thing?

Gerv
Sorry, I should have specified it in the summary. onClick requires a click, onSubmit fires anytime the users attempts to submit, such as pressing enter in the text field.
Is that true? I can enter "123" and press [Enter] in the b.m.o. front page field, and it does the right thing, including executing the JS which takes me to the bug rather than doing a search for "123".

Gerv
This bug was field because IE doesn't fire onClick in that case. The patch doesn't affect functionality in Mozilla, but fixes IE.
(and I think the fact that onclick is fired in that case is an accessibilty hack... onsubmit is more "correct")
Dave: can you apply this change directly to b.m.o.?

Gerv
Assignee: justdave → justdave
Dave: is the b.m.o. index template maintained in source control somewhere? Or do we just hack the copy on the server?

Gerv
Assignee: justdave → reed
I have made this change on the index page. It will go live at the BMO upgrade.

See https://landfill.bugzilla.org/prodpatches/ for demo.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Depends on: 335151
QA Contact: myk → reed
Component: Bugzilla: Other b.m.o Issues → General
Product: mozilla.org → bugzilla.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: