|
@@ -132,13 +132,13 @@
|
|
});
|
|
});
|
|
Promise.all(addToShipmentRequests).then(() => {
|
|
Promise.all(addToShipmentRequests).then(() => {
|
|
// all requests finished successfully
|
|
// all requests finished successfully
|
|
- window.location.reload();
|
|
|
|
|
|
+ fastReload();
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
// all requests finished but one or more failed
|
|
// all requests finished but one or more failed
|
|
alert(succeededSupplyOrders + ' supply requests added to shipment. ' +
|
|
alert(succeededSupplyOrders + ' supply requests added to shipment. ' +
|
|
(totalSupplyOrders - succeededSupplyOrders) + ' could not be added to shipment'
|
|
(totalSupplyOrders - succeededSupplyOrders) + ' could not be added to shipment'
|
|
);
|
|
);
|
|
- window.location.reload();
|
|
|
|
|
|
+ fastReload();
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}, 'json');
|
|
}, 'json');
|