Browse Source

note-rhs-sidebar UI issue after point update fix

Vijayakrishnan 3 years ago
parent
commit
1d86192315
1 changed files with 4 additions and 1 deletions
  1. 4 1
      resources/views/app/patient/note/segment_script.blade.php

+ 4 - 1
resources/views/app/patient/note/segment_script.blade.php

@@ -41,7 +41,10 @@
         }
         }
 
 
         window.refreshRHSSidebar = function() {
         window.refreshRHSSidebar = function() {
-            $('#note-rhs-sidebar').load('/note-rhs-sidebar/{{$patient->uid}}/{{$note->uid}}');
+            $.get('/note-rhs-sidebar/{{$patient->uid}}/{{$note->uid}}', _data => {
+                $('#note-rhs-sidebar').replaceWith(_data);
+                $(window).trigger('scroll');
+            });
         };
         };
 
 
         window.updateSegmentByUid = function(_uid, _summaryHtml, _editHtml, _updateOnlySummary) {
         window.updateSegmentByUid = function(_uid, _summaryHtml, _editHtml, _updateOnlySummary) {