49087f4950
・選択カスタムフィールドのセレクタIDをクラスに修正
21 lines
565 B
JavaScript
21 lines
565 B
JavaScript
jQuery(function ($) {
|
|
$('.select-custom-field-input').autocomplete({
|
|
source: function (req, resp) {
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: localize.ajax_url,
|
|
dataType: 'json',
|
|
data: {
|
|
action: localize.action,
|
|
param: req.term
|
|
}
|
|
}).done(function (o) {
|
|
resp(o);
|
|
}).fail(function () {
|
|
resp(['']);
|
|
});
|
|
},
|
|
autoFocus: true,
|
|
minLength: 2
|
|
});
|
|
}); |