mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-24 07:07:19 +02:00
Update users.blade.php
This commit is contained in:
parent
15e05aced0
commit
98d16cc7fd
@ -170,8 +170,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
@push('sidebar-scripts')
|
||||
<script defer>
|
||||
const getCellValue = (tr, idx) => tr.children[idx].innerText || tr.children[idx].textContent;
|
||||
|
||||
const comparer = (idx, asc) => (a, b) =>
|
||||
@ -179,6 +179,7 @@
|
||||
v1 !== '' && v2 !== '' && !isNaN(v1) && !isNaN(v2) ? v1 - v2 : v1.toString().localeCompare(v2)
|
||||
)(getCellValue(asc ? a : b, idx), getCellValue(asc ? b : a, idx));
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
// Find the table and its headers
|
||||
const table = document.querySelector('table');
|
||||
const headers = table.querySelectorAll('th');
|
||||
@ -216,5 +217,6 @@
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@endsection
|
Loading…
x
Reference in New Issue
Block a user