datatable.js 525 B

12345678910111213141516171819202122232425
  1. $(function(e) {
  2. 'use strict';
  3. // DATATABLE 1
  4. $('#datatable1').DataTable({
  5. responsive: true,
  6. language: {
  7. searchPlaceholder: 'Search...',
  8. sSearch: '',
  9. lengthMenu: '_MENU_ items/page',
  10. }
  11. });
  12. // DATATABLE 2
  13. $('#datatable2').DataTable({
  14. bLengthChange: false,
  15. searching: false,
  16. responsive: true
  17. });
  18. // SELECT2
  19. $('.dataTables_length select').select2({
  20. minimumResultsForSearch: Infinity
  21. });
  22. });