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')){
$(this).DataTable({
searching: false, searching: false,
paging: false, paging: false,
ordering: false, ordering: false,
info: false, info: false,
order: false order: false,
autoWidth: false
});
}
}); });
</script> </script>