Closed
Bug 370507
Opened 19 years ago
Closed 19 years ago
"Disable Add-on" shouldn't be the default action
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Future
People
(Reporter: jwkbugzilla, Assigned: fligtar)
References
()
Details
The default action of a form is always the first submit button. Click "Edit author", type something and press Enter in the text field - you will be asked whether you really want to disable the add-on. There are two problems here:
1. "Update" button should come first in the HTML code so that it is the default action.
2. "Add author" should be a separate form so that it doesn't trigger the default action of the page.
| Assignee | ||
Updated•19 years ago
|
Assignee: nobody → fligtar
| Assignee | ||
Comment 1•19 years ago
|
||
I repositioned all the buttons so that the positive-sounding one is first, however the add author form will take longer and will have to wait awhile.
| Assignee | ||
Updated•19 years ago
|
Target Milestone: --- → Future
Comment 2•19 years ago
|
||
I added a form tag and made the button a <button> rather than <input>, so that it fires the "add author" javascript event rather than submitting the whole page when you hit enter. (SVN r2644, diff: http://tinyurl.com/24raol)
Is that alright, flig?
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 3•19 years ago
|
||
Looks good, thanks Fred.
Did you fix up add_step2.thtml as well?
Comment 4•19 years ago
|
||
Now I did. Thanks.
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•