18 lines
728 B
JavaScript
18 lines
728 B
JavaScript
$(document).ready(function() {
|
|
$("input[name='filter_column_name']")
|
|
.autocomplete(admin_module_edit_url+'&ajax=1&exclude_packs=0&excludeVirtuals=0&excludeIds=99999999999&configure=boproductfinder', {
|
|
minChars: 2,
|
|
autoFill: true,
|
|
max: 30,
|
|
matchContains: true,
|
|
mustMatch: false,
|
|
scroll: false,
|
|
cacheLength: 0,
|
|
width: 400,
|
|
formatItem: function (item) {
|
|
return '<img style="border:1px solid #898989; margin-right:5px; float:left; width:40px; height:auto;" src="'+item[2]+'">' + ' ' + item[0];
|
|
}
|
|
}).result(function (e, p) {
|
|
document.location.href=p[3];
|
|
});
|
|
}); |