Fixed PageNation

This commit is contained in:
2020-08-03 13:21:47 +02:00
parent 679de4872d
commit e2847e9959
2 changed files with 7 additions and 4 deletions
@@ -70,13 +70,16 @@
{{ $users->links() }}
<script>
var url = new URL(window.location.href);
var page = url.searchParams.get("page");
$('#search').on('keyup', function () {
$value = $(this).val();
$checkboxValue = $( "input:checked" ).val();
$.ajax({
type: 'get',
url: '{{route('users.search')}}',
data: {'search':$value, 'isCheck': $checkboxValue},
data: {'search':$value, 'isCheck': $checkboxValue, 'page': page },
success:function (data) {
console.log($checkboxValue);
$('tbody').html(data);