item autocomplete by sku

This commit is contained in:
denisdulici
2018-04-10 17:36:48 +03:00
parent 094e9d3002
commit 98bcefc1b2
10 changed files with 22 additions and 11 deletions

View File

@ -198,7 +198,7 @@
$(this).typeahead({
minLength: 3,
displayText:function (data) {
return data.name;
return data.name + ' (' + data.sku + ')';
},
source: function (query, process) {
$.ajax({