Changed selectlist results to be 'items' for internal consistency

This commit is contained in:
Brady Wetherington 2020-07-16 15:33:38 -07:00
parent 318da67230
commit 68263ff806
3 changed files with 7 additions and 7 deletions

View file

@ -33,7 +33,7 @@ class SelectlistTransformer
}
$results = [
'results' => $items_array,
'items' => $items_array,
'pagination' =>
[
'more' => ($select_items->currentPage() >= $select_items->lastPage()) ? false : true,

View file

@ -212,19 +212,19 @@ $(document).ready(function () {
};
return data;
},
/* processResults: function (data, params) {
processResults: function (data, params) {
params.page = params.page || 1;
var answer = {
results: data.items,
pagination: {
more: "true" //(params.page < data.page_count)
more: data.pagination.more
}
};
return answer;
}, */
},
cache: true
},
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work

View file

@ -69,19 +69,19 @@ $(function () {
};
return data;
},
/* processResults: function (data, params) {
processResults: function (data, params) {
params.page = params.page || 1;
var answer = {
results: data.items,
pagination: {
more: "true" //(params.page < data.page_count)
more: data.pagination.more
}
};
return answer;
}, */
},
cache: true
},
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work