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)

defect
Not set
minor

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: nobody → fligtar
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.
Target Milestone: --- → Future
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
Looks good, thanks Fred. Did you fix up add_step2.thtml as well?
Now I did. Thanks.
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.