mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add option to display ALL results in a paginated table
- Commonize the number of pages allowed
This commit is contained in:
parent
45a321694b
commit
cf2abb4130
@ -198,7 +198,8 @@ function loadPartTable(table, url, options={}) {
|
||||
sortName: 'name',
|
||||
method: 'get',
|
||||
pagination: true,
|
||||
pageSize: 25,
|
||||
pageSize: 50,
|
||||
pageList: [25, 50, 100, 'all'],
|
||||
rememberOrder: true,
|
||||
formatNoMatches: function() { return "No parts found"; },
|
||||
queryParams: function(p) {
|
||||
|
@ -47,7 +47,8 @@ function loadStockTable(table, options) {
|
||||
search: true,
|
||||
method: 'get',
|
||||
pagination: true,
|
||||
pageSize: 25,
|
||||
pageSize: 50,
|
||||
pageList: [25, 50, 100, 'all'],
|
||||
rememberOrder: true,
|
||||
formatNoMatches: function() {
|
||||
return 'No stock items matching query';
|
||||
|
@ -50,6 +50,7 @@
|
||||
search: true,
|
||||
pagination: true,
|
||||
pageSize: 50,
|
||||
pageList: [25, 50, 100, 'all'],
|
||||
formatNoMatches: function() { return "No supplier parts found for {{ company.name }}"; },
|
||||
queryParams: function(p) {
|
||||
return {
|
||||
|
@ -37,6 +37,7 @@ InvenTree | Supplier List
|
||||
search: true,
|
||||
pagination: true,
|
||||
pageSize: 50,
|
||||
pageList: [25, 50, 100, 'all'],
|
||||
formatNoMatches: function() { return "No company information found"; },
|
||||
columns: [
|
||||
{
|
||||
|
@ -36,6 +36,7 @@
|
||||
search: true,
|
||||
pagination: true,
|
||||
pageSize: 50,
|
||||
pageList: [25, 50, 100, 'all'],
|
||||
queryParams: function(p) {
|
||||
return {
|
||||
part: {{ part.id }},
|
||||
|
@ -140,7 +140,8 @@ InvenTree | Search Results
|
||||
search: "{{ query }}",
|
||||
},
|
||||
pagination: true,
|
||||
pageSize: 25,
|
||||
pageSize: 50,
|
||||
pageList: [25, 50, 100, 'all'],
|
||||
search: true,
|
||||
columns: [
|
||||
{
|
||||
@ -163,7 +164,8 @@ InvenTree | Search Results
|
||||
search: "{{ query }}",
|
||||
},
|
||||
pagination: true,
|
||||
pageSize: 25,
|
||||
pageSize: 50,
|
||||
pageList: [25, 50, 100, 'all'],
|
||||
search: true,
|
||||
columns: [
|
||||
{
|
||||
|
@ -27,7 +27,8 @@
|
||||
sortable: true,
|
||||
search: true,
|
||||
pagination: true,
|
||||
pageSize: 25,
|
||||
pageSize: 50,
|
||||
pageList: [25, 50, 100, 'all'],
|
||||
formatNoMatches: function() { return "No currencies found"; },
|
||||
rowStyle: function(row, index) {
|
||||
if (row.base) {
|
||||
|
@ -27,7 +27,8 @@
|
||||
sortable: true,
|
||||
search: true,
|
||||
pagination: true,
|
||||
pageSize: 25,
|
||||
pageSize: 50,
|
||||
pageList: [25, 50, 100, 'all'],
|
||||
formatNoMatches: function() { return "No part parameter templates found"; },
|
||||
columns: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user