Skip to content

Commit

Permalink
[MRG] Merge pull request #618 from sandervandegeijn/615_add_customer_id
Browse files Browse the repository at this point in the history
Added customer ID to table
  • Loading branch information
whikernel authored Oct 14, 2024
2 parents 8ca28ba + 07f54ed commit 44b77d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@
<thead>
<tr>
<th>Name</th>
<th>Customer ID</th>
<th>Description</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th>Customer ID</th>
<th>Description</th>
</tr>
</tfoot>
Expand Down
9 changes: 9 additions & 0 deletions ui/src/pages/manage.customers.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ $(document).ready(function() {
return data;
}
},
{
"data": "customer_id",
"render": function (data, type, row) {
if (type === 'display') {
return sanitizeHTML(data);
}
return data;
}
},
{
"data": "customer_description",
"render": function (data, type, row) {
Expand Down

0 comments on commit 44b77d3

Please sign in to comment.