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').each(function(){
$('.tab-pane table').DataTable({ if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
searching: false, $(this).DataTable({
paging: false, searching: false,
ordering: false, paging: false,
info: false, ordering: false,
order: false info: false,
order: false,
autoWidth: false
});
}
}); });
</script> </script>