Jelajahi Sumber

eRx - update version number on save clinical

Vijayakrishnan 3 tahun lalu
induk
melakukan
15e2efd4c2

+ 6 - 2
resources/views/app/patient/prescriptions-popup/list-popup.blade.php

@@ -1222,6 +1222,8 @@ GROUP BY erx_category");
                         }, _data => {
                             if(!hasResponseError(_data)) {
                                 // nothing to do
+                                toastr.success('Prescription updated');
+                                refreshDynamicStagPopup();
                             }
                         }, 'json');
                     },
@@ -1240,6 +1242,8 @@ GROUP BY erx_category");
                         }, _data => {
                             if(!hasResponseError(_data)) {
                                 // nothing to do
+                                toastr.success('Prescription updated');
+                                refreshDynamicStagPopup();
                             }
                         }, 'json');
                     },
@@ -1343,8 +1347,8 @@ GROUP BY erx_category");
                                                 }, _data => {
                                                     if(!hasResponseError(_data)) {
                                                         // nothing to do
-
-                                                        self.setAddMode('');
+                                                        toastr.success('Prescription updated');
+                                                        refreshDynamicStagPopup();
                                                     }
                                                 }, 'json');
 

+ 3 - 2
resources/views/app/patient/prescriptions/list.blade.php

@@ -1256,6 +1256,7 @@ GROUP BY erx_category");
                         }, _data => {
                             if(!hasResponseError(_data)) {
                                 // nothing to do
+                                fastReload();
                             }
                         }, 'json');
                     },
@@ -1274,6 +1275,7 @@ GROUP BY erx_category");
                         }, _data => {
                             if(!hasResponseError(_data)) {
                                 // nothing to do
+                                fastReload();
                             }
                         }, 'json');
                     },
@@ -1377,8 +1379,7 @@ GROUP BY erx_category");
                                                 }, _data => {
                                                     if(!hasResponseError(_data)) {
                                                         // nothing to do
-
-                                                        self.setAddMode('');
+                                                        fastReload();
                                                     }
                                                 }, 'json');