mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Changed selectlist results to be 'items' for internal consistency
This commit is contained in:
parent
318da67230
commit
68263ff806
|
@ -33,7 +33,7 @@ class SelectlistTransformer
|
|||
}
|
||||
|
||||
$results = [
|
||||
'results' => $items_array,
|
||||
'items' => $items_array,
|
||||
'pagination' =>
|
||||
[
|
||||
'more' => ($select_items->currentPage() >= $select_items->lastPage()) ? false : true,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue