Run make format

in-house-export-serialization
Kevin Chung 2020-04-23 02:28:05 -04:00
parent d8e766734a
commit 0bb1a5d0bd
5 changed files with 10 additions and 14 deletions

View File

@ -3,7 +3,7 @@ import CTFd from "core/CTFd";
import $ from "jquery";
import { ezAlert, ezQuery } from "core/ezq";
function deleteSelectedChallenges(event){
function deleteSelectedChallenges(event) {
let challengeIDs = $("input[data-challenge-id]:checked").map(function() {
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() {
return $(this).data("challenge-id");
});
ezAlert({
title: 'Edit Challenges',
title: "Edit Challenges",
body: $(`
<form id="challenges-bulk-edit">
<div class="form-group">
@ -78,4 +78,3 @@ $(() => {
$("#challenges-delete-button").click(deleteSelectedChallenges);
$("#challenges-edit-button").click(bulkEditChallenges);
});

View File

@ -3,7 +3,6 @@ import CTFd from "core/CTFd";
import $ from "jquery";
import { ezQuery } from "core/ezq";
function deleteSelectedUsers(event) {
let pageIDs = $("input[data-page-id]:checked").map(function() {
return $(this).data("page-id");
@ -29,7 +28,6 @@ function deleteSelectedUsers(event) {
});
}
$(() => {
$("#pages-delete-button").click(deleteSelectedUsers);
});

View File

@ -51,13 +51,13 @@ function toggleSelectedAccounts(accountIDs, action) {
});
}
function bulkToggleAccounts(event){
function bulkToggleAccounts(event) {
let accountIDs = $("input[data-account-id]:checked").map(function() {
return $(this).data("account-id");
});
ezAlert({
title: 'Toggle Visibility',
title: "Toggle Visibility",
body: $(`
<form id="scoreboard-bulk-edit">
<div class="form-group">

View File

@ -3,7 +3,6 @@ import CTFd from "core/CTFd";
import $ from "jquery";
import { ezAlert, ezQuery } from "core/ezq";
function deleteSelectedTeams(event) {
let teamIDs = $("input[data-team-id]:checked").map(function() {
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() {
return $(this).data("team-id");
});
ezAlert({
title: 'Edit Teams',
title: "Edit Teams",
body: $(`
<form id="teams-bulk-edit">
<div class="form-group">

View File

@ -28,13 +28,13 @@ function deleteSelectedUsers(event) {
});
}
function bulkEditUsers(event){
function bulkEditUsers(event) {
let userIDs = $("input[data-user-id]:checked").map(function() {
return $(this).data("user-id");
});
ezAlert({
title: 'Edit Users',
title: "Edit Users",
body: $(`
<form id="users-bulk-edit">
<div class="form-group">