Skip to content

Commit

Permalink
update page properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Cocoa committed Mar 24, 2024
1 parent 60d4c19 commit 61c5d61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ import Slider from "bootstrap-slider";

$('#search-results')
.on('click', '.page-link', (evt) => {
let url = new URL($(evt.target).attr('href'));
let page = url.searchParams.get("page");
if (page) {
$("#search-page").val(page);
}

searchJs.triggerSearch(evt);
});

Expand Down

0 comments on commit 61c5d61

Please sign in to comment.