Fix some issues

This commit is contained in:
2025-08-28 11:59:46 +09:00
parent 2a962181b2
commit bba0422efb
4 changed files with 59 additions and 4 deletions

View File

@ -850,7 +850,7 @@
async function loadEventCodes() {
console.log('loadEventCodes called');
try {
const apiUrl = `${API_BASE_URL}/events/`;
const apiUrl = `${API_BASE_URL}/events-supervisor/`;
console.log('Fetching events from URL:', apiUrl);
const response = await fetch(apiUrl, {
@ -876,8 +876,8 @@
data.forEach(event => {
const option = document.createElement('option');
option.value = event.code;
option.textContent = event.name;
option.value = event.event_name; // event_nameを使用
option.textContent = event.event_name; // event_nameを使用
select.appendChild(option);
});