From c4ab2a4fedc725cfc132fe7ab35d24086cbb565a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 3 Jun 2016 10:51:00 -0600 Subject: [PATCH] CRM-18742 - Focus first text field on search forms --- js/crm.searchForm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/crm.searchForm.js b/js/crm.searchForm.js index 3de76afb89..c110521330 100644 --- a/js/crm.searchForm.js +++ b/js/crm.searchForm.js @@ -100,6 +100,10 @@ $(function() { initForm(); + + // Focus first search field + $('.crm-form-text:input:visible:first', 'form.crm-search-form').focus(); + // Handle user interactions with search results $('#crm-container') // When toggling between "all records" and "selected records only" -- 2.25.1