From 538f42900f8c51a0fa1ad3a3f2e4be553b247994 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 28 Aug 2018 12:42:30 -0700 Subject: Focus search input after page load on /rails/info/routes (#33683) --- .../lib/action_dispatch/middleware/templates/routes/_table.html.erb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb b/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb index 1fa0691303..0242b706b2 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb @@ -197,4 +197,7 @@ setupMatchPaths(); setupRouteToggleHelperLinks(); + + // Focus the search input after page has loaded + document.getElementById('search').focus(); -- cgit v1.2.3