Pārlūkot izejas kodu

note-rhs-sidebar UI issue after point update fix

Vijayakrishnan 3 gadi atpakaļ
vecāks
revīzija
1d86192315

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

@@ -41,7 +41,10 @@
         }
 
         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) {