mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-01-31 11:54:23 +01:00
Beta challenge sorting interface (#1900)
* Add a beta way to sort challenges in the core theme through `window.BETA_sortChallenges()`
This commit is contained in:
@@ -265,6 +265,10 @@ function loadChals() {
|
||||
const $challenges_board = $("#challenges-board");
|
||||
challenges = response.data;
|
||||
|
||||
if (window.BETA_sortChallenges) {
|
||||
challenges = window.BETA_sortChallenges(challenges);
|
||||
}
|
||||
|
||||
$challenges_board.empty();
|
||||
|
||||
for (let i = challenges.length - 1; i >= 0; i--) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user