Browse code

Version 1.5 initial commit

Benjamin Roth authored on24/06/2024 12:06:17
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/contaomemberextension/scripts/dataTables.min.js|static';
4
+$GLOBALS['TL_CSS'][] = 'bundles/contaomemberextension/css/dataTables.min.css|static';
5
+$GLOBALS['TL_HEAD'][] = "<script>window.addEventListener('load',()=>{
6
+  document.querySelectorAll('.member-table > table')?.forEach(table => {
7
+    new DataTable(table, {
8
+      paging: !!table.dataset.pagingTrue,
9
+      language: {
10
+        'search':  table.dataset.searchLabel,
11
+        'zeroRecords': table.dataset.zeroLabel
12
+      },
13
+      info: false
14
+    });
15
+  })
16
+})</script>";