|
|
|
|
@ -30,6 +30,8 @@
@@ -30,6 +30,8 @@
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async function drop(number){ |
|
|
|
|
let confirmed = confirm(t('document.confirm_deletion').replace('{pos}',document.positions[number].item)); |
|
|
|
|
if (!confirmed) return; |
|
|
|
|
const url = `${location.protocol}//${location.host.replace('5173','8080')}/api/document/${document.id}/position`; |
|
|
|
|
const resp = await fetch(url,{ |
|
|
|
|
method: 'DELETE', |
|
|
|
|
|