mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +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,
|
search: true,
|
||||||
queryParams: options.filters || {},
|
queryParams: options.filters || {},
|
||||||
uniqueId: 'pk',
|
uniqueId: 'pk',
|
||||||
|
sidePagination: 'server',
|
||||||
onPostBody: function() {
|
onPostBody: function() {
|
||||||
|
|
||||||
// Add callback for 'edit' button
|
// Add callback for 'edit' button
|
||||||
|
@ -375,10 +375,6 @@ $.fn.inventreeTable = function(options) {
|
|||||||
options.totalField = 'count';
|
options.totalField = 'count';
|
||||||
options.dataField = 'results';
|
options.dataField = 'results';
|
||||||
|
|
||||||
if (options.sidePagination == null) {
|
|
||||||
options.sidePagination = 'server';
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
options.pagination = false;
|
options.pagination = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user