From: Tom Hughes Date: Tue, 10 Dec 2013 19:45:28 +0000 (+0000) Subject: Restore autofocusing of the search field X-Git-Tag: live~4539 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9cc9a0098840363b6497337951b53aa583f4aa44?hp=9cc9a0098840363b6497337951b53aa583f4aa44;ds=sidebyside Restore autofocusing of the search field 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 ---