Skip to content

Commit

Permalink
Merge pull request #267 from gavsto/dev
Browse files Browse the repository at this point in the history
Enhancement: Added tenant filter in search for Domain Analyser
  • Loading branch information
gavsto authored Nov 19, 2021
2 parents 09530de + e5571f7 commit a845af1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion DomainAnalyserList.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ <h1 class="page-header-title">
<thead>
<tr>
<th>Domain</th>
<th>Tenant</th>
<th>Security Score</th>
<th>Mail Provider</th>
<th>SPF Pass Test</th>
Expand All @@ -50,6 +51,7 @@ <h1 class="page-header-title">
<tfoot>
<tr>
<th>Domain</th>
<th>Tenant</th>
<th>Security Score</th>
<th>Mail Provider</th>
<th>SPF Pass Test</th>
Expand Down Expand Up @@ -92,4 +94,4 @@ <h5 class="modal-title" id="exampleModalLabel">Results</h5>
</div>
</div>

</html>
</html>
9 changes: 7 additions & 2 deletions js/datatables/datatablesDomainAnalyser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $(document).ready(function () {
{ extend: 'copyHtml5', className: 'btn btn-primary btn-sm' },
{ extend: 'excelHtml5', className: 'btn btn-primary btn-sm', title: 'Domain Analyser - ' + todayDate, exportOptions: { orthogonal: "export" } },
{ extend: 'csvHtml5', className: 'btn btn-primary btn-sm', title: 'Domain Analyser - ' + todayDate, exportOptions: { orthogonal: "export" } },
{ extend: 'pdfHtml5', className: 'btn btn-primary btn-sm', pageSize: 'A2', orientation: 'landscape', title: 'Domain Analyser - ' + todayDate, exportOptions: { columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], orthogonal: "export" } },
{ extend: 'pdfHtml5', className: 'btn btn-primary btn-sm', pageSize: 'A2', orientation: 'landscape', title: 'Domain Analyser - ' + todayDate, exportOptions: { columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], orthogonal: "export" } },
{
text: 'Force Refresh All Data',
className: 'btn btn-primary btn-sm',
Expand All @@ -45,6 +45,7 @@ $(document).ready(function () {
],
"columns": [
{ "data": "Domain" },
{ "data": "Tenant" },
{
"data": "Score",
"render": function (data, type, row) {
Expand Down Expand Up @@ -250,8 +251,12 @@ $(document).ready(function () {
],
'columnDefs': [
{
"targets": [1, 2, 3, 4, 5, 6, 7, 8, 9], // your case first column
"targets": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], // your case first column
"className": "text-center align-middle"
},
{
"targets": [ 1 ],
"visible": false
}
],
"order": [[0, "asc"]],
Expand Down

0 comments on commit a845af1

Please sign in to comment.