Fix table sorting issues (#3289)

- Recent update changed default table pagination to "server"
- This broke at least the BOM table, maybe others
- Revert the behaviour to previous to observe old defaults
- Update pagination mode for attachment tables specifically
This commit is contained in:
Oliver 2022-07-04 12:06:56 +10:00 committed by GitHub
parent 7791631e87
commit fd03b4068d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -196,6 +196,7 @@ function loadAttachmentTable(url, options) {
search: true,
queryParams: options.filters || {},
uniqueId: 'pk',
sidePagination: 'server',
onPostBody: function() {
// Add callback for 'edit' button

View File

@ -375,10 +375,6 @@ $.fn.inventreeTable = function(options) {
options.totalField = 'count';
options.dataField = 'results';
if (options.sidePagination == null) {
options.sidePagination = 'server';
}
} else {
options.pagination = false;
}