|
@@ -75,6 +75,18 @@
|
|
<div class="card-body p-0">
|
|
<div class="card-body p-0">
|
|
<div class="d-flex align-items-start m-0">
|
|
<div class="d-flex align-items-start m-0">
|
|
<div class="flex-grow-1 px-0 pt-2">
|
|
<div class="flex-grow-1 px-0 pt-2">
|
|
|
|
+ <?php $trIndex = 0; ?>
|
|
|
|
+ @foreach ($patients as $iPatient)
|
|
|
|
+ <script>
|
|
|
|
+ addMCHook(
|
|
|
|
+ 'refresh-rpm-row-{{$trIndex}}',
|
|
|
|
+ function () {
|
|
|
|
+ refreshRpmRow({{$trIndex}});
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ </script>
|
|
|
|
+ <?php $trIndex++; ?>
|
|
|
|
+ @endforeach
|
|
<table class="table table-sm table-striped table-hover p-0 m-0 border-top" id="table-rm-matrix">
|
|
<table class="table table-sm table-striped table-hover p-0 m-0 border-top" id="table-rm-matrix">
|
|
<thead class="bg-light">
|
|
<thead class="bg-light">
|
|
<tr stag-title="Click to sort. Shift+Click to multi-sort.">
|
|
<tr stag-title="Click to sort. Shift+Click to multi-sort.">
|
|
@@ -337,14 +349,6 @@
|
|
@endif
|
|
@endif
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
- <script>
|
|
|
|
- addMCHook(
|
|
|
|
- 'refresh-rpm-row-{{$trIndex}}',
|
|
|
|
- function () {
|
|
|
|
- refreshRpmRow({{$trIndex}});
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
- </script>
|
|
|
|
<?php $trIndex++; ?>
|
|
<?php $trIndex++; ?>
|
|
@endforeach
|
|
@endforeach
|
|
</tbody>
|
|
</tbody>
|
|
@@ -361,13 +365,17 @@
|
|
let tr = $('#table-rm-matrix tbody tr:eq(' + _index + ')');
|
|
let tr = $('#table-rm-matrix tbody tr:eq(' + _index + ')');
|
|
if(!tr.length) return;
|
|
if(!tr.length) return;
|
|
let clientUid = tr.attr('data-client-uid'), careMonthUid = tr.attr('data-care-month-uid');
|
|
let clientUid = tr.attr('data-client-uid'), careMonthUid = tr.attr('data-care-month-uid');
|
|
- $.get('/rpm-matrix-row?m={{$mStr}}&y={{$yStr}}&clientUid=' + clientUid + '&careMonthUid=' + careMonthUid, _data => {
|
|
|
|
|
|
+ $.get('/rpm-matrix-row?m={{$mStr}}&y={{$yStr}}&clientUid=' + clientUid + '&careMonthUid=' + careMonthUid + '&trIndex=' + _index, _data => {
|
|
let row = $(_data);
|
|
let row = $(_data);
|
|
row.find('>td').each(function(_columnIndex) {
|
|
row.find('>td').each(function(_columnIndex) {
|
|
dataTableInst.cell(_index, _columnIndex).data(this.innerHTML); //.draw();
|
|
dataTableInst.cell(_index, _columnIndex).data(this.innerHTML); //.draw();
|
|
});
|
|
});
|
|
$('#practice-remote-monitoring [moe][initialized]').removeAttr('initialized');
|
|
$('#practice-remote-monitoring [moe][initialized]').removeAttr('initialized');
|
|
initMoes();
|
|
initMoes();
|
|
|
|
+ tr.addClass('post-refresh-highlight');
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ tr.removeClass('post-refresh-highlight');
|
|
|
|
+ }, 1000);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
function init() {
|
|
function init() {
|