do not alert() on img upload/edit

This commit is contained in:
Alexander Bocken 2023-12-18 20:33:56 +01:00
parent 5abd2f7bed
commit 69ff12bcdb
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -108,7 +108,7 @@
})
if(!res_img.ok){
const item = await res_img.json();
alert(item.message)
//alert(item.message)
return
}
return
@ -129,7 +129,7 @@
}
else{
const item = await res.json();
alert(item.message)
// alert(item.message)
}
}
async function doEdit() {
@ -153,7 +153,7 @@
})
if(!res.ok){
const item = await res.json();
alert(item.message)
// alert(item.message)
}
}
async function upload_img(){
@ -172,7 +172,7 @@
});
if(!res.ok){
const item = await res.json();
alert(item.message)
// alert(item.message)
}
}
delete_img()
@ -195,7 +195,7 @@
})
if(!res_img.ok){
const item = await res_img.json();
alert(item.message)
//alert(item.message)
return
}
}
@ -232,7 +232,7 @@
}
else{
const item = await res.json()
alert(item.message)
//alert(item.message)
}
}
</script>