Преглед на файлове

note-rhs-sidebar UI issue after point update fix

Vijayakrishnan преди 3 години
родител
ревизия
1d86192315
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  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() {
-            $('#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) {