Lines 517-524
Link Here
|
517 |
+ ' </div>' |
517 |
+ ' </div>' |
518 |
+ ' </div>' |
518 |
+ ' </div>' |
519 |
+ ' <table id="results">' |
519 |
+ ' <table id="results">' |
520 |
+ ' <thead>' + tr + '</thead>' |
520 |
+ ' <thead>' + tr + tr + '</thead>' |
521 |
+ ' <tfoot>' + tr + '</tfoot>' |
|
|
522 |
+ ' <tbody></tbody>' |
521 |
+ ' <tbody></tbody>' |
523 |
+ ' </table>' |
522 |
+ ' </table>' |
524 |
+ '</div>'; |
523 |
+ '</div>'; |
Lines 632-644
Link Here
|
632 |
"initComplete": function() { |
631 |
"initComplete": function() { |
633 |
$('#results').DataTable().columns().every(function () { |
632 |
$('#results').DataTable().columns().every(function () { |
634 |
let column = this; |
633 |
let column = this; |
635 |
let columnName = $(column.footer()).data('colname'); |
634 |
let columnName = $(column.header()).data('colname'); |
636 |
let title = column.footer().textContent; |
635 |
let title = column.header().textContent; |
637 |
|
636 |
|
638 |
let input = document.createElement('input'); |
637 |
let input = document.createElement('input'); |
639 |
input.classList.add('text_filter', 'form-control' , 'search_init'); |
638 |
input.classList.add('text_filter', 'form-control' , 'search_init'); |
640 |
input.placeholder = title; |
639 |
input.placeholder = title; |
641 |
column.footer().replaceChildren(input); |
640 |
column.header().replaceChildren(input); |
642 |
|
641 |
|
643 |
input.addEventListener('keyup', () => { |
642 |
input.addEventListener('keyup', () => { |
644 |
if (column.search() !== this.value) { |
643 |
if (column.search() !== this.value) { |
645 |
- |
|
|