Bugfix for bootstrap-table.j

"Refreshing" the table options did not work proper good
This commit is contained in:
Oliver Walters 2020-04-10 23:54:10 +10:00
parent 5d141a0b98
commit 4256d09e80
2 changed files with 1 additions and 7 deletions

View File

@ -3272,10 +3272,7 @@
}, { }, {
key: 'getOptions', key: 'getOptions',
value: function getOptions() { value: function getOptions() {
// deep copy and remove data return this.options;
var options = JSON.parse(JSON.stringify(this.options));
delete options.data;
return options;
} }
}, { }, {
key: 'getSelections', key: 'getSelections',

View File

@ -359,9 +359,6 @@ function loadStockTable(table, options) {
linkButtonsToSelection(table, options.buttons); linkButtonsToSelection(table, options.buttons);
} }
// Display the filters
updateStockFilterList(filterListElement);
function stockAdjustment(action) { function stockAdjustment(action) {
var items = $("#stock-table").bootstrapTable("getSelections"); var items = $("#stock-table").bootstrapTable("getSelections");