Small edits

UI QOL changes.
This commit is contained in:
aftercase 2021-08-26 23:00:23 +01:00
parent 677ea7bcdd
commit ce615c1b5b

View file

@ -17,12 +17,19 @@
<script> <script>
$(document).ready(function () { $(document).ready(function () {
$("#archive").dataTable({ $("#archive").dataTable({
rowReorder: { selector: 'td:nth-child(2)'}, rowReorder: {selector: 'td:nth-child(2)'},
responsive: true, responsive: true,
processing: true, processing: true,
language: {processing: '<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i><span class="sr-only">Loading...</span> '}, language: {
processing: '<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i><br><span>Loading...</span> ',
infoFiltered: "(filtered from _MAX_ total pastes)",
info: "Showing _START_ to _END_ of _TOTAL_ pastes",
search: '<i class="fa fa-search"></i>',
lengthMenu: "Show _MENU_ Pastes",
zeroRecords: '<i class="fa fa-times fa-3x"></i><br><span>No Results</span>',
},
autoWidth: false, autoWidth: false,
ajax: "api/ajax_pastes.php", ajax: "../api/ajax_pastes.php",
initComplete: function () { initComplete: function () {
var search = new URLSearchParams(window.location.search); var search = new URLSearchParams(window.location.search);
var query = search.get('q'); var query = search.get('q');