aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/default/js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/default/js')
-rw-r--r--assets/default/js/base.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/default/js/base.js b/assets/default/js/base.js
index 4163577d..66badfb2 100644
--- a/assets/default/js/base.js
+++ b/assets/default/js/base.js
@@ -294,7 +294,8 @@ function init(description) {
294 const deleteLinks = document.querySelectorAll('.confirm-delete'); 294 const deleteLinks = document.querySelectorAll('.confirm-delete');
295 [...deleteLinks].forEach((deleteLink) => { 295 [...deleteLinks].forEach((deleteLink) => {
296 deleteLink.addEventListener('click', (event) => { 296 deleteLink.addEventListener('click', (event) => {
297 if (!confirm(document.getElementById('translation-delete-tag').innerHTML)) { 297 const type = event.currentTarget.getAttribute('data-type') || 'link';
298 if (!confirm(document.getElementById(`translation-delete-${type}`).innerHTML)) {
298 event.preventDefault(); 299 event.preventDefault();
299 } 300 }
300 }); 301 });