mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Rename usages
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
method: 'GET',
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json'
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
method: 'GET',
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json'
|
||||
|
||||
@@ -167,7 +167,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
async function loadLocationsIntoSelect(selectElement, selectedValue = null) {
|
||||
try {
|
||||
const response = await fetch('/Locations/Index');
|
||||
const response = await fetch('/Locations/GetAll');
|
||||
const data = await response.json();
|
||||
const locations = data.locations;
|
||||
|
||||
@@ -208,7 +208,7 @@ async function loadLocationsIntoSelect(selectElement, selectedValue = null) {
|
||||
|
||||
async function loadUsersIntoSelect(selectElement, selectedValue = null) {
|
||||
try {
|
||||
const response = await fetch('/Users/Index?Cn=false&Sn=false&Title=false&Description=false&JpegPhoto=false&UserPassword=false');
|
||||
const response = await fetch('/Users/GetAll?Cn=false&Sn=false&Title=false&Description=false&JpegPhoto=false&UserPassword=false');
|
||||
const users = await response.json();
|
||||
|
||||
const ts = selectElement.tomselect;
|
||||
|
||||
Reference in New Issue
Block a user