]> git.openstreetmap.org Git - rails.git/commitdiff
Restore autofocusing of the search field
authorTom Hughes <tom@compton.nu>
Tue, 10 Dec 2013 19:45:28 +0000 (19:45 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 10 Dec 2013 19:45:28 +0000 (19:45 +0000)
Use the HTML5 autofocus attribute, and focus on load for browsers
which don't support it.

Also change the removal of the "Where am I?" prompt to happen on
input rather than when the field is focused, so that it is properly
removed and restored when the field has been autofocused.

Fixes https://trac.openstreetmap.org/ticket/5065


No differences found