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)
bugzilla.mozilla.org
General
Tracking
()
RESOLVED
FIXED
People
(Reporter: Gavin, Assigned: reed)
References
()
Details
Attachments
(1 file)
841 bytes,
patch
|
Details | Diff | Splinter Review |
I've diffed against the attachment in bug 279823.
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Updated•19 years ago
|
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
Updated•19 years ago
|
Assignee: justdave → wurblzap
Comment 2•19 years ago
|
||
Argh. Sorry, I didn't mean to steal a b.m.o bug.
Assignee: wurblzap → justdave
Updated•19 years ago
|
Priority: -- → P2
Comment 3•19 years ago
|
||
Why is onsubmit() preferable to onclick()? Does onclick() not fire sometimes? Or is it an accessibility thing? Gerv
Reporter | ||
Comment 4•19 years ago
|
||
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.
Comment 5•19 years ago
|
||
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
Reporter | ||
Comment 6•19 years ago
|
||
This bug was field because IE doesn't fire onClick in that case. The patch doesn't affect functionality in Mozilla, but fixes IE.
Reporter | ||
Comment 7•19 years ago
|
||
(and I think the fact that onclick is fired in that case is an accessibilty hack... onsubmit is more "correct")
Comment 8•19 years ago
|
||
Dave: can you apply this change directly to b.m.o.? Gerv
Updated•18 years ago
|
Assignee: justdave → justdave
Comment 9•18 years ago
|
||
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 | ||
Updated•18 years ago
|
Assignee: justdave → reed
Assignee | ||
Comment 10•18 years ago
|
||
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
Assignee | ||
Updated•18 years ago
|
QA Contact: myk → reed
Updated•13 years ago
|
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.
Description
•