Fix a typo (#34)
This commit is contained in:
parent
d86894d890
commit
ad0451d2fd
@ -74,7 +74,7 @@ $('#mySelect2').select2({
|
|||||||
ajax: {
|
ajax: {
|
||||||
url: '/example/api',
|
url: '/example/api',
|
||||||
processResults: function (data) {
|
processResults: function (data) {
|
||||||
// Tranforms the top-level key of the response object from 'items' to 'results'
|
// Transforms the top-level key of the response object from 'items' to 'results'
|
||||||
return {
|
return {
|
||||||
results: data.items
|
results: data.items
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user