when i try to add new product and select user nothing display
this script file :
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
<script>
$(".ajaxSelect").select2({
ajax: {
url: "{{ concatenateLangToUrl('admin/getUser') }}",
dataType: 'json',
delay: 250,
data: function (params) {
return {
q: params.term, // search term
page: params.page
};
},
processResults: function (data, params) {
// parse the results into the format expected by Select2
// since we are using custom formatting functions we do not need to
// alter the remote JSON data, except to indicate that infinite
// scrolling can be used
params.page = params.page || 1;
return {
results: data.items,
pagination: {
more: (params.page * 30) < data.total_count
}
};
},
cache: true
},
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
minimumInputLength: 1,
templateResult: formatRepo, // omitted for brevity, see the source of this page
templateSelection: formatRepoSelection // omitted for brevity, see the source of this page
});
function formatRepo (repo) {
if (repo.loading) return repo.name;
var markup = repo.name;
return markup;
}
function formatRepoSelection (repo) {
return repo.name;
}
</script>
when i try to add new product and select user nothing display this script file :
and this view edit file
im using laraflat 2.0.0 wamp server