浏览代码

Supply orders - fastReload() after update

Vijayakrishnan 4 年之前
父节点
当前提交
6f7e8442e6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      resources/views/app/practice-management/supply-orders-ready-to-ship.blade.php

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

@@ -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');