Closed Bug 1122565 Opened 9 years ago Closed 9 years ago

editversions.cgi should focus the version field on page load to cut down on need for mouse

Categories

(Bugzilla :: Administration, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: dkl, Assigned: dkl)

Details

Attachments

(1 file, 1 obsolete file)

SSIA. Patch coming.
Attached patch 1122565_1.patch (obsolete) — Splinter Review
Scratching my own itch and maybe useful to others. When loading editversions.cgi to add a new version, I have to use the mouse to focus the version field. With this, we can just type the version, hit enter and done.

dkl
Attachment #8550301 - Flags: review?(dylan)
Comment on attachment 8550301 [details] [diff] [review]
1122565_1.patch

>+  onload="document.getElementById('version').focus();"

No need for JS to do this. Use the 'autofocus' attribute available in HTML5, see bug 958825.
Attachment #8550301 - Flags: review?(dylan) → review-
Attached patch 1122565_2.patchSplinter Review
Neat. Learned something new today :)
Attachment #8550301 - Attachment is obsolete: true
Attachment #8550425 - Flags: review?(LpSolit)
Comment on attachment 8550425 [details] [diff] [review]
1122565_2.patch

r=LpSolit
Attachment #8550425 - Flags: review?(LpSolit) → review+
Flags: approval?
Target Milestone: --- → Bugzilla 6.0
Flags: approval? → approval+
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   495b9da..8820144  master -> master
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.