adds juery.ui autocomplete extension selectFirst to select the first matching entry

This commit is contained in:
tim madden 2011-02-09 06:59:36 +08:00 committed by Reinier Balt
parent 564f209800
commit 1a42f00a0a
4 changed files with 33 additions and 5 deletions

View file

@ -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)')