yifengyou / centos / centos.org

Forked from centos/centos.org 3 years ago
Clone
Blob Blame History Raw
$(document).ready((function(){$("#myTable tfoot th.searchable").each((function(){var t=$(this).text();$(this).html('<input type="text" placeholder="Search '+t+'" />')}));$("#myTable").DataTable({autoWidth:!1,initComplete:function(){this.api().columns().every((function(){var t=this;$("input",this.footer()).on("keyup change clear",(function(){t.search()!==this.value&&t.search(this.value).draw()}))}))}})}));