Эх сурвалжийг харах

Supply orders - fastReload() after update

Vijayakrishnan 4 жил өмнө
parent
commit
6f7e8442e6

+ 2 - 2
resources/views/app/practice-management/supply-orders-ready-to-ship.blade.php

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