blob: 9eb383edef7fffd265ea4e73732827b01df205ee [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001window.addEventListener("load", function() {
2 var datatable = $('.datatable').DataTable({
3 paging: false,
4 ordering: false,
5 info: false,
6 searching:true
7 });
8
9 document.querySelector("#usuario").addEventListener("input", function(evt) {
10 this.search(evt.target.value);
11 this.draw(true);
12 }.bind(datatable));
13
14 document.querySelector(".adduser").addEventListener("click", function() {
15 document.querySelector("#adduser").showModal();
16 /* Or dialog.show(); to show the dialog without a backdrop. */
17 });
18
19 document.querySelector(".importcsv").addEventListener("click", function() {
20 document.querySelector("#importcsv").showModal();
21 /* Or dialog.show(); to show the dialog without a backdrop. */
22 });
23
24 document.querySelector(".filter").addEventListener("click", function() {
25 document.querySelector("#filter").showModal();
26 /* Or dialog.show(); to show the dialog without a backdrop. */
27 });
28});