attributes dialog converted to algolia autocomplete, closes #203

This commit is contained in:
azivner
2018-11-07 20:32:11 +01:00
parent 90dbe637ed
commit 13f9007bd6
5 changed files with 92 additions and 75 deletions

View File

@@ -63,6 +63,10 @@ function initNoteAutocomplete($el) {
ko.bindingHandlers.noteAutocomplete = {
init: function(element, valueAccessor, allBindings, viewModel, bindingContext) {
initNoteAutocomplete($(element));
$(element).on('autocomplete:selected', function(event, suggestion, dataset) {
bindingContext.$data.selectedPath = suggestion.path;
});
}
};