|
@@ -50,7 +50,7 @@
|
|
catch (Exception $e) {}
|
|
catch (Exception $e) {}
|
|
}
|
|
}
|
|
@endphp
|
|
@endphp
|
|
- <tr class="{{ $row->visit_number > 2 ? 'bgyellow':'' }} {{ $row->visit_number == 1 ? 'bggreen':'' }} {{ $row->visit_number == 2 ? 'bgblue':'' }} {{ $row->is_claim_closed ? 'claim-closed' : '' }}"
|
|
|
|
|
|
+ <tr class="{{request('uid') === $row->uid ? 'current-row' : ''}} {{ $row->visit_number > 2 ? 'bgyellow':'' }} {{ $row->visit_number == 1 ? 'bggreen first-visit':'' }} {{ $row->visit_number == 2 ? 'bgblue':'' }} {{ $row->is_claim_closed ? 'claim-closed' : '' }}"
|
|
data-uid="{{$row->uid}}">
|
|
data-uid="{{$row->uid}}">
|
|
<td class="{{request('uid') === $row->uid ? 'bg-info' : ''}}"></td>
|
|
<td class="{{request('uid') === $row->uid ? 'bg-info' : ''}}"></td>
|
|
<td class="text-nowrap text-right pr-2">{{$row->visit_number}}</td>
|
|
<td class="text-nowrap text-right pr-2">{{$row->visit_number}}</td>
|
|
@@ -114,7 +114,7 @@
|
|
else {
|
|
else {
|
|
let selectedTr = parent.find('tr[data-uid="{{request('uid')}}"]').first();
|
|
let selectedTr = parent.find('tr[data-uid="{{request('uid')}}"]').first();
|
|
if (selectedTr.length) {
|
|
if (selectedTr.length) {
|
|
- selectedTr[0].scrollIntoView({behavior: "smooth", block: "center"});
|
|
|
|
|
|
+ selectedTr[0].scrollIntoView({behavior: "auto", block: "center"});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
parent.removeAttr('v-cloak');
|
|
parent.removeAttr('v-cloak');
|
|
@@ -124,6 +124,50 @@
|
|
parent.find('tr[data-uid]').first().find('.select-row').trigger('click');
|
|
parent.find('tr[data-uid]').first().find('.select-row').trigger('click');
|
|
@endif
|
|
@endif
|
|
parent.removeAttr('v-cloak');
|
|
parent.removeAttr('v-cloak');
|
|
|
|
+
|
|
|
|
+ parent
|
|
|
|
+ .off('click.next-row', '.btn-next-row')
|
|
|
|
+ .on('click.next-row', '.btn-next-row', function () {
|
|
|
|
+ let currentRow = parent.find('tr.current-row').first(),
|
|
|
|
+ nextRow = false;
|
|
|
|
+ while(currentRow.length) {
|
|
|
|
+ if(currentRow.next().is('.first-visit:not(.claim-closed)')) {
|
|
|
|
+ nextRow = currentRow.next();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ currentRow = currentRow.next();
|
|
|
|
+ }
|
|
|
|
+ if(nextRow && nextRow.length) {
|
|
|
|
+ localStorage.nrcv2RowScrollTop_{{$nrcPage}} = '';
|
|
|
|
+ nextRow.find('.select-row').trigger('click');
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ toastr.error('No can do!');
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ parent
|
|
|
|
+ .off('click.prev-row', '.btn-prev-row')
|
|
|
|
+ .on('click.prev-row', '.btn-prev-row', function () {
|
|
|
|
+ let currentRow = parent.find('tr.current-row').first(),
|
|
|
|
+ prevRow = false;
|
|
|
|
+ while(currentRow.length) {
|
|
|
|
+ if(currentRow.prev().is('.first-visit:not(.claim-closed)')) {
|
|
|
|
+ prevRow = currentRow.prev();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ currentRow = currentRow.prev();
|
|
|
|
+ }
|
|
|
|
+ if(prevRow && prevRow.length) {
|
|
|
|
+ localStorage.nrcv2RowScrollTop_{{$nrcPage}} = '';
|
|
|
|
+ prevRow.find('.select-row').trigger('click');
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ toastr.error('No can do!');
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ });
|
|
}
|
|
}
|
|
addMCInitializer('notes-resolution-center', init, '#notes-resolution-center');
|
|
addMCInitializer('notes-resolution-center', init, '#notes-resolution-center');
|
|
}).call(window);
|
|
}).call(window);
|