refactoring

This commit is contained in:
frankknoll
2022-02-20 12:33:21 +01:00
parent be6ee46445
commit a0a05bfed9
496 changed files with 396 additions and 397 deletions

View File

@@ -15,7 +15,7 @@
function createEmptyBatchCodeTable() {
const columnIndex = {
'Batch': 0,
'Total Number of Adverse Reaction Reports': 1,
'Adverse Reaction Reports': 1,
'Deaths': 2,
'Disabilities': 3,
'Life Threatening Illnesses': 4,
@@ -35,13 +35,13 @@
},
processing: true,
deferRender: true,
order: [[columnIndex['Total Number of Adverse Reaction Reports'], "desc"]],
order: [[columnIndex['Adverse Reaction Reports'], "desc"]],
columnDefs:
[
{
searchable: false,
targets: [
columnIndex['Total Number of Adverse Reaction Reports'],
columnIndex['Adverse Reaction Reports'],
columnIndex['Deaths'],
columnIndex['Disabilities'],
columnIndex['Life Threatening Illnesses'],
@@ -268,7 +268,7 @@
<thead>
<tr>
<th>Batch</th>
<th>Total Number of Adverse Reaction Reports</th>
<th>Adverse Reaction Reports</th>
<th>Deaths</th>
<th>Disabilities</th>
<th>Life Threatening Illnesses</th>