mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 16:50:12 +01:00
adds juery.ui autocomplete extension selectFirst to select the first matching entry
This commit is contained in:
parent
564f209800
commit
1a42f00a0a
4 changed files with 33 additions and 5 deletions
|
|
@ -914,13 +914,16 @@ function enable_rich_interaction(){
|
|||
|
||||
/* Autocomplete */
|
||||
$('input[name=context_name]').autocomplete({
|
||||
source: relative_to_root('contexts.autocomplete')
|
||||
source: relative_to_root('contexts.autocomplete'),
|
||||
selectFirst: true
|
||||
});
|
||||
$('input[name=project_name]').autocomplete({
|
||||
source: relative_to_root('projects.autocomplete')
|
||||
source: relative_to_root('projects.autocomplete'),
|
||||
selectFirst: true
|
||||
});
|
||||
$('input[name="project[default_context_name]"]').autocomplete({
|
||||
source: relative_to_root('contexts.autocomplete')
|
||||
source: relative_to_root('contexts.autocomplete'),
|
||||
selectFirst: true
|
||||
});
|
||||
|
||||
$('input[name=tag_list]:not(.ac_input)')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue