Add option to display ALL results in a paginated table

- Commonize the number of pages allowed
This commit is contained in:
Oliver Walters 2019-09-19 23:20:42 +10:00
parent 45a321694b
commit cf2abb4130
8 changed files with 15 additions and 6 deletions

View File

@ -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) {

View File

@ -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';

View File

@ -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 {

View File

@ -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: [
{

View File

@ -36,6 +36,7 @@
search: true,
pagination: true,
pageSize: 50,
pageList: [25, 50, 100, 'all'],
queryParams: function(p) {
return {
part: {{ part.id }},

View File

@ -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: [
{

View File

@ -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) {

View File

@ -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: [
{