Feature: Support both Free-Text and Multiple-Choice question types
This commit is contained in:
+14
-2
@@ -7,8 +7,9 @@ function showTab(tabId) {
|
||||
targetTab.classList.add("active");
|
||||
}
|
||||
|
||||
// Mark active button
|
||||
event.currentTarget.classList.add("active");
|
||||
if (event && event.currentTarget) {
|
||||
event.currentTarget.classList.add("active");
|
||||
}
|
||||
}
|
||||
|
||||
function toggleEdit(id) {
|
||||
@@ -18,6 +19,17 @@ function toggleEdit(id) {
|
||||
}
|
||||
}
|
||||
|
||||
function toggleAdminNewType(type) {
|
||||
const mcGroup = document.getElementById("adminMcOptions");
|
||||
if (mcGroup) {
|
||||
if (type === "multiple_choice") {
|
||||
mcGroup.classList.remove("hidden");
|
||||
} else {
|
||||
mcGroup.classList.add("hidden");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function approveQuestion(id) {
|
||||
if (!confirm(`Möchtest du Frage #${id} wirklich freischalten und für alle Spieler aktivieren?`)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user