From: Coleman Watts Date: Fri, 3 Jun 2016 16:51:00 +0000 (-0600) Subject: CRM-18742 - Focus first text field on search forms X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c4ab2a4fedc725cfc132fe7ab35d24086cbb565a;p=civicrm-core.git CRM-18742 - Focus first text field on search forms --- 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"