mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Server-side pagination for part category search results
This commit is contained in:
parent
b9c8e46e1c
commit
e36039b03f
@ -126,24 +126,10 @@
|
|||||||
|
|
||||||
addItem('category', '{% trans "Part Categories" %}', 'fa-sitemap');
|
addItem('category', '{% trans "Part Categories" %}', 'fa-sitemap');
|
||||||
|
|
||||||
$("#table-category").inventreeTable({
|
loadPartCategoryTable($("#table-category"), {
|
||||||
url: "{% url 'api-part-category-list' %}",
|
params: {
|
||||||
queryParams: {
|
|
||||||
original_search: "{{ query }}",
|
original_search: "{{ query }}",
|
||||||
},
|
}
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
field: 'name',
|
|
||||||
title: '{% trans "Name" %}',
|
|
||||||
formatter: function(value, row, index, field) {
|
|
||||||
return renderLink(value, '/part/category/' + row.pk + '/');
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'description',
|
|
||||||
title: '{% trans "Description" %}',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
addItem('manufacturer-part', '{% trans "Manufacturer Parts" %}', 'fa-toolbox');
|
addItem('manufacturer-part', '{% trans "Manufacturer Parts" %}', 'fa-toolbox');
|
||||||
|
Loading…
Reference in New Issue
Block a user