projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f401e68
)
CRM-18742 - Focus first text field on search forms
author
Coleman Watts
<coleman@civicrm.org>
Fri, 3 Jun 2016 16:51:00 +0000
(10:51 -0600)
committer
Coleman Watts
<coleman@civicrm.org>
Fri, 3 Jun 2016 16:51:00 +0000
(10:51 -0600)
js/crm.searchForm.js
patch
|
blob
|
blame
|
history
diff --git
a/js/crm.searchForm.js
b/js/crm.searchForm.js
index 3de76afb892c801518dac1747aa08c3a92bab25a..c1105213301532c0c3b47a0f74f3ba1af8c5bdcd 100644
(file)
--- 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"