Frontend update

This commit is contained in:
Minik Gaarde Lambrecht
2021-04-06 20:12:10 +02:00
parent e84b52c27d
commit 5a689abc59
8 changed files with 376 additions and 52 deletions
+5 -6
View File
@@ -10,15 +10,15 @@ $(document).ready(function () {
// Populate select with options from the database
axios.get('/Backend/Controllers/GameJam/GetGameJam.php')
.then(function(res) {
let resArr = res.data;
let resArr = res.data.data;
//console.log(res.data.data);
// console.log(resArr);
for(let i = 0; i < res.data.data.length; i++)
for(let i = 0; i < resArr.length; i++)
{
arr.push({
id: res.data.data[i].id,
Gamejam: res.data.data[i].name
id: resArr[i].id,
Gamejam: resArr[i].name
});
}
@@ -211,7 +211,6 @@ $(document).ready(function () {
formData.append(id, value);
axios.post(URL, formData, {
header: 'multipart/form-data'
}).then(res => {