This commit is contained in:
Laura Klünder 2017-10-30 18:01:43 +01:00
parent e45cb6746b
commit 1dcc6ee8ca

View file

@ -202,7 +202,7 @@ c3nav = {
// otherwise, focus this element, and save location to the input
next.addClass('focus');
$(this).val(next.find('span').text()).parent()
.data('siggestion', c3nav.locations_by_id[next.attr('data-id')]);
.data('suggestion', c3nav.locations_by_id[next.attr('data-id')]);
}
} else if (e.which === 13) {
// enter: select currently focused suggestion or first suggestion