fix error

This commit is contained in:
chiu 2021-08-19 22:18:17 +08:00
parent 1819bd319a
commit 211d896298
1 changed files with 11 additions and 7 deletions

View File

@ -75,12 +75,16 @@ for ( var i = 0; i < $('tr[data-list="pd_title"]').length ; i++ ) {
}
}
}
$('.tab-pane table').DataTable({
searching: false,
paging: false,
ordering: false,
info: false,
order: false
$('.tab-pane table').each(function(){
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
$(this).DataTable({
searching: false,
paging: false,
ordering: false,
info: false,
order: false,
autoWidth: false
});
}
});
</script>