mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -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 = [
|
||||||
'results' => $items_array,
|
'items' => $items_array,
|
||||||
'pagination' =>
|
'pagination' =>
|
||||||
[
|
[
|
||||||
'more' => ($select_items->currentPage() >= $select_items->lastPage()) ? false : true,
|
'more' => ($select_items->currentPage() >= $select_items->lastPage()) ? false : true,
|
||||||
|
|
|
@ -212,19 +212,19 @@ $(document).ready(function () {
|
||||||
};
|
};
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
/* processResults: function (data, params) {
|
processResults: function (data, params) {
|
||||||
|
|
||||||
params.page = params.page || 1;
|
params.page = params.page || 1;
|
||||||
|
|
||||||
var answer = {
|
var answer = {
|
||||||
results: data.items,
|
results: data.items,
|
||||||
pagination: {
|
pagination: {
|
||||||
more: "true" //(params.page < data.page_count)
|
more: data.pagination.more
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return answer;
|
return answer;
|
||||||
}, */
|
},
|
||||||
cache: true
|
cache: true
|
||||||
},
|
},
|
||||||
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
||||||
|
|
|
@ -69,19 +69,19 @@ $(function () {
|
||||||
};
|
};
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
/* processResults: function (data, params) {
|
processResults: function (data, params) {
|
||||||
|
|
||||||
params.page = params.page || 1;
|
params.page = params.page || 1;
|
||||||
|
|
||||||
var answer = {
|
var answer = {
|
||||||
results: data.items,
|
results: data.items,
|
||||||
pagination: {
|
pagination: {
|
||||||
more: "true" //(params.page < data.page_count)
|
more: data.pagination.more
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return answer;
|
return answer;
|
||||||
}, */
|
},
|
||||||
cache: true
|
cache: true
|
||||||
},
|
},
|
||||||
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
||||||
|
|
Loading…
Reference in a new issue