mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-23 16:54:25 +01:00
Change the page selector to be less verbose
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user