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:
Kevin Chung
2021-05-30 17:47:25 -04:00
committed by GitHub
parent 8646f2384c
commit bdc58ef911
3 changed files with 6 additions and 2 deletions

View File

@@ -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