Fix creatures datatable

This commit is contained in:
slawkens 2023-09-03 21:33:41 +02:00
parent 8c3b73ca9e
commit 619b8ba4a0

View File

@ -52,9 +52,8 @@
}); });
}); });
</script> </script>
{{ generateLink('?creatures', 'All', false)|raw }} - <a href="?subtopic=creatures&boss=view">Bosses</a> {{ generateLink(getLink('creatures'), 'All', false)|raw }} - <a href="?subtopic=creatures&boss=view">Bosses</a>
<div style="float: right;"><input id="cSearch" type="text" placeholder="Search.."></div> <table width="100%" id="creaturestb">
<table width="100%">
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>Name</th>
@ -83,7 +82,15 @@
</tbody> </tbody>
</table> </table>
{% endif %} {% endif %}
<script src="tools/js/jquery.min.js"></script> <script>
$(document).ready(function () {
$('#creaturestb').DataTable();
});
</script>
<script src="tools/js/datatables.min.js"></script>
<link rel="stylesheet" href="tools/css/datatables.min.css">
{% else %} {% else %}
<table width="100%"> <table width="100%">
<tr> <tr>