Change the page selector to be less verbose

This commit is contained in:
Kevin Chung
2020-04-25 04:00:53 -04:00
parent 45d4892c61
commit ff2e4c9dd0
9 changed files with 51 additions and 41 deletions

View File

@@ -74,6 +74,12 @@ export default () => {
}
});
$(".page-select").change(function() {
let url = new URL(window.location);
url.searchParams.set("page", this.value);
window.location.href = url.toString();
})
makeSortableTables();
$('[data-toggle="tooltip"]').tooltip();
});