Fixed autocomplete
This commit is contained in:
parent
bea5709efd
commit
d872d5a56d
1 changed files with 2 additions and 1 deletions
|
@ -495,6 +495,7 @@ on_show_add_contribution_modal=function(e) {
|
||||||
}
|
}
|
||||||
$('#add_contribution_modal #add_contribution_category').html(cats);
|
$('#add_contribution_modal #add_contribution_category').html(cats);
|
||||||
$('#add_contribution_modal #add_contribution_category')[0].value=current_cat;
|
$('#add_contribution_modal #add_contribution_category')[0].value=current_cat;
|
||||||
|
$('#add_contribution_modal #add_contribution_title').typeahead('destroy');
|
||||||
$('#add_contribution_modal #add_contribution_title').typeahead({
|
$('#add_contribution_modal #add_contribution_title').typeahead({
|
||||||
hint: true,
|
hint: true,
|
||||||
highlight: true,
|
highlight: true,
|
||||||
|
@ -511,7 +512,7 @@ on_show_add_contribution_modal=function(e) {
|
||||||
|
|
||||||
on_select_contribution_suggestion=function(event,choice,name) {
|
on_select_contribution_suggestion=function(event,choice,name) {
|
||||||
if (jQuery.type(choice['category'])=='string') {
|
if (jQuery.type(choice['category'])=='string') {
|
||||||
$('#add_contribution_modal #add_contribution_category')[0].value=choice['category'];
|
$('#add_contribution_modal #add_contribution_category').val(choice['category']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue