mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
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:
parent
7791631e87
commit
fd03b4068d
@ -196,6 +196,7 @@ function loadAttachmentTable(url, options) {
|
||||
search: true,
|
||||
queryParams: options.filters || {},
|
||||
uniqueId: 'pk',
|
||||
sidePagination: 'server',
|
||||
onPostBody: function() {
|
||||
|
||||
// Add callback for 'edit' button
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user