Lines 434-441
Link Here
|
434 |
+ ' </div>' |
434 |
+ ' </div>' |
435 |
+ ' </div>' |
435 |
+ ' </div>' |
436 |
+ ' <table id="results">' |
436 |
+ ' <table id="results">' |
437 |
+ ' <thead>' + tr + '</thead>' |
437 |
+ ' <thead>' + tr + tr + '</thead>' |
438 |
+ ' <tfoot>' + tr + '</tfoot>' |
|
|
439 |
+ ' <tbody></tbody>' |
438 |
+ ' <tbody></tbody>' |
440 |
+ ' </table>' |
439 |
+ ' </table>' |
441 |
+ '</div>'; |
440 |
+ '</div>'; |
Lines 529-541
Link Here
|
529 |
"initComplete": function() { |
528 |
"initComplete": function() { |
530 |
$('#results').DataTable().columns().every(function () { |
529 |
$('#results').DataTable().columns().every(function () { |
531 |
let column = this; |
530 |
let column = this; |
532 |
let columnName = $(column.footer()).data('colname'); |
531 |
let columnName = $(column.header()).data('colname'); |
533 |
let title = column.footer().textContent; |
532 |
let title = column.header().textContent; |
534 |
|
533 |
|
535 |
let input = document.createElement('input'); |
534 |
let input = document.createElement('input'); |
536 |
input.classList.add('text_filter', 'form-control' , 'search_init'); |
535 |
input.classList.add('text_filter', 'form-control' , 'search_init'); |
537 |
input.placeholder = title; |
536 |
input.placeholder = title; |
538 |
column.footer().replaceChildren(input); |
537 |
column.header().replaceChildren(input); |
539 |
|
538 |
|
540 |
input.addEventListener('keyup', () => { |
539 |
input.addEventListener('keyup', () => { |
541 |
if (column.search() !== this.value) { |
540 |
if (column.search() !== this.value) { |
542 |
- |
|
|