Răsfoiți Sursa

On "Next Patient", auto-open that patient in LHS

Vijayakrishnan Krishnan 4 ani în urmă
părinte
comite
29c1a83935

+ 4 - 0
resources/views/app/mc.blade.php

@@ -23,6 +23,10 @@
     </div>
     <script>
         initVSplitter('stag-mc-main', $('.app-left-panel'), $('.app-right-panel'));
+        window.openInLHS = function(_url) {
+            $('#stag_mcp_lhs')[0].contentWindow.fastLoad(_url, true, false);
+            return false;
+        };
         window.openInRHS = function(_url) {
             $('#stag_mcp_rhs').attr('src', _url);
             return false;

+ 3 - 0
resources/views/app/video/call.blade.php

@@ -119,6 +119,9 @@
                                 self.clientUid = _data.data;
                                 self.videoActive = true;
                                 self.startOpenTokSession();
+
+                                // navigate to this patient on LHS
+                                window.top.openInLHS('/patients/view/' + self.clientUid, true, false);
                             }
                         }
                     }, 'json');