mirror of https://github.com/JohnHammond/CTFd.git
Run make format
parent
d8e766734a
commit
0bb1a5d0bd
|
@ -3,7 +3,7 @@ import CTFd from "core/CTFd";
|
||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
import { ezAlert, ezQuery } from "core/ezq";
|
import { ezAlert, ezQuery } from "core/ezq";
|
||||||
|
|
||||||
function deleteSelectedChallenges(event){
|
function deleteSelectedChallenges(event) {
|
||||||
let challengeIDs = $("input[data-challenge-id]:checked").map(function() {
|
let challengeIDs = $("input[data-challenge-id]:checked").map(function() {
|
||||||
return $(this).data("challenge-id");
|
return $(this).data("challenge-id");
|
||||||
});
|
});
|
||||||
|
@ -28,13 +28,13 @@ function deleteSelectedChallenges(event){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function bulkEditChallenges(event){
|
function bulkEditChallenges(event) {
|
||||||
let challengeIDs = $("input[data-challenge-id]:checked").map(function() {
|
let challengeIDs = $("input[data-challenge-id]:checked").map(function() {
|
||||||
return $(this).data("challenge-id");
|
return $(this).data("challenge-id");
|
||||||
});
|
});
|
||||||
|
|
||||||
ezAlert({
|
ezAlert({
|
||||||
title: 'Edit Challenges',
|
title: "Edit Challenges",
|
||||||
body: $(`
|
body: $(`
|
||||||
<form id="challenges-bulk-edit">
|
<form id="challenges-bulk-edit">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -78,4 +78,3 @@ $(() => {
|
||||||
$("#challenges-delete-button").click(deleteSelectedChallenges);
|
$("#challenges-delete-button").click(deleteSelectedChallenges);
|
||||||
$("#challenges-edit-button").click(bulkEditChallenges);
|
$("#challenges-edit-button").click(bulkEditChallenges);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ import CTFd from "core/CTFd";
|
||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
import { ezQuery } from "core/ezq";
|
import { ezQuery } from "core/ezq";
|
||||||
|
|
||||||
|
|
||||||
function deleteSelectedUsers(event) {
|
function deleteSelectedUsers(event) {
|
||||||
let pageIDs = $("input[data-page-id]:checked").map(function() {
|
let pageIDs = $("input[data-page-id]:checked").map(function() {
|
||||||
return $(this).data("page-id");
|
return $(this).data("page-id");
|
||||||
|
@ -29,7 +28,6 @@ function deleteSelectedUsers(event) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$(() => {
|
$(() => {
|
||||||
$("#pages-delete-button").click(deleteSelectedUsers);
|
$("#pages-delete-button").click(deleteSelectedUsers);
|
||||||
});
|
});
|
||||||
|
|
|
@ -51,13 +51,13 @@ function toggleSelectedAccounts(accountIDs, action) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function bulkToggleAccounts(event){
|
function bulkToggleAccounts(event) {
|
||||||
let accountIDs = $("input[data-account-id]:checked").map(function() {
|
let accountIDs = $("input[data-account-id]:checked").map(function() {
|
||||||
return $(this).data("account-id");
|
return $(this).data("account-id");
|
||||||
});
|
});
|
||||||
|
|
||||||
ezAlert({
|
ezAlert({
|
||||||
title: 'Toggle Visibility',
|
title: "Toggle Visibility",
|
||||||
body: $(`
|
body: $(`
|
||||||
<form id="scoreboard-bulk-edit">
|
<form id="scoreboard-bulk-edit">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -3,7 +3,6 @@ import CTFd from "core/CTFd";
|
||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
import { ezAlert, ezQuery } from "core/ezq";
|
import { ezAlert, ezQuery } from "core/ezq";
|
||||||
|
|
||||||
|
|
||||||
function deleteSelectedTeams(event) {
|
function deleteSelectedTeams(event) {
|
||||||
let teamIDs = $("input[data-team-id]:checked").map(function() {
|
let teamIDs = $("input[data-team-id]:checked").map(function() {
|
||||||
return $(this).data("team-id");
|
return $(this).data("team-id");
|
||||||
|
@ -29,13 +28,13 @@ function deleteSelectedTeams(event) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function bulkEditTeams(event){
|
function bulkEditTeams(event) {
|
||||||
let teamIDs = $("input[data-team-id]:checked").map(function() {
|
let teamIDs = $("input[data-team-id]:checked").map(function() {
|
||||||
return $(this).data("team-id");
|
return $(this).data("team-id");
|
||||||
});
|
});
|
||||||
|
|
||||||
ezAlert({
|
ezAlert({
|
||||||
title: 'Edit Teams',
|
title: "Edit Teams",
|
||||||
body: $(`
|
body: $(`
|
||||||
<form id="teams-bulk-edit">
|
<form id="teams-bulk-edit">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -28,13 +28,13 @@ function deleteSelectedUsers(event) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function bulkEditUsers(event){
|
function bulkEditUsers(event) {
|
||||||
let userIDs = $("input[data-user-id]:checked").map(function() {
|
let userIDs = $("input[data-user-id]:checked").map(function() {
|
||||||
return $(this).data("user-id");
|
return $(this).data("user-id");
|
||||||
});
|
});
|
||||||
|
|
||||||
ezAlert({
|
ezAlert({
|
||||||
title: 'Edit Users',
|
title: "Edit Users",
|
||||||
body: $(`
|
body: $(`
|
||||||
<form id="users-bulk-edit">
|
<form id="users-bulk-edit">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
Loading…
Reference in New Issue