浏览代码

MCP dashboard popup fixes

Vijayakrishnan 3 年之前
父节点
当前提交
4777c10166

+ 1 - 1
resources/views/app/mcp/cancelled_appointments_pending_review.blade.php

@@ -1,4 +1,4 @@
-@extends ('layouts/template')
+@extends(request()->input('popupmode') ? 'layouts.empty' : 'layouts.template')
 
 @section('content')
     <div class="p-3 mcp-theme-1" id="patients-list">

+ 1 - 1
resources/views/app/mcp/new_patients_awaiting_visit.blade.php

@@ -1,4 +1,4 @@
-@extends ('layouts/template')
+@extends(request()->input('popupmode') ? 'layouts.empty' : 'layouts.template')
 
 @section('content')
     <div class="p-3 mcp-theme-1">

+ 1 - 1
resources/views/app/mcp/patients_overdue_for_visit.blade.php

@@ -1,4 +1,4 @@
-@extends ('layouts/template')
+@extends(request()->input('popupmode') ? 'layouts.empty' : 'layouts.template')
 
 @section('content')
     <div class="p-3 mcp-theme-1" id="patients-list">

+ 1 - 1
resources/views/app/mcp/patients_without_appointments.blade.php

@@ -1,4 +1,4 @@
-@extends ('layouts/template')
+@extends(request()->input('popupmode') ? 'layouts.empty' : 'layouts.template')
 
 @section('content')
     <div class="p-3 mcp-theme-1" id="patients-list">

+ 0 - 35
resources/views/layouts/template.blade.php

@@ -433,41 +433,6 @@
     <script src="/js/stag-collapsible-card.js?v={{config('app.asset_version')}}"></script>
     <script src="/js/stag-scrollbar.js?v={{config('app.asset_version')}}"></script>
     @include('app/pdf/viewer')
-    @if(config('app.enableSockets'))
-    <script>
-        window.socketClient = Stomp.over(new SockJS("{{ config('app.backend_ws_url') }}"));
-        window.socketClient.debug = function(str) {};
-        window.socketClient.connect({}, (frame) => {
-
-            window.socketClient.send("/app/register", {},     // register self
-                JSON.stringify({
-                    sessionKey: '{{$performer->session_key}}'
-                })
-            );
-
-            window.socketClient.subscribe("/user/topic/myCurrentProClientWork", function(message) {
-                console.log("You have a client pro work: ", message);
-                $.get('/current-work', function(_data) {
-                    $('.current-work').html(_data);
-                    //initFastLoad($('.current-work'));
-                    fastReload();
-                });
-            });
-
-            window.socketClient.subscribe("/user/topic/killMyCurrentProClientWork", function(message) {
-                console.log("You have killed your current pro client work: ", message);
-                $.get('/current-work', function(_data) {
-                    $('.current-work').html(_data);
-                    //initFastLoad($('.current-work'));
-                    fastReload();
-                });
-            });
-
-
-
-        });
-    </script>
-    @endif
     <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.24/fc-3.3.2/fh-3.1.8/datatables.min.css"/>
     <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.24/fc-3.3.2/fh-3.1.8/datatables.min.js"></script>
     <link href="/v-splitter-px/v-splitter.css?v={{config('app.asset_version')}}" rel="stylesheet" >