2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Add ability to delete multiple selected manufacturer part parameters

This commit is contained in:
Oliver
2021-07-01 17:20:06 +10:00
parent 8a29a3de0f
commit 225162ab8e
4 changed files with 50 additions and 7 deletions

View File

@ -213,7 +213,7 @@ function deleteManufacturerParts(selections, options={}) {
});
// Wait for all the requests to complete
$.when(requests).then(function() {
$.when.apply($, requests).then(function() {
if (options.onSuccess) {
options.onSuccess();
@ -352,7 +352,7 @@ function loadManufacturerPartParameterTable(table, url, options) {
{
checkbox: true,
switchable: false,
visible: false,
visible: true,
},
{
field: 'name',

View File

@ -906,7 +906,7 @@ function loadStockTable(table, options) {
);
});
$.when(requests).then(function() {
$.when.apply($, requests).then(function() {
$("#stock-table").bootstrapTable('refresh');
});
})