From b1c56173c74d7655961d4c2c16b6ff642ab37134 Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Mon, 18 Nov 2024 10:46:48 +0100 Subject: [PATCH] radiocampus/assets/ASoundListEditor.vue: enable removing episode sounds --- .../assets/src/components/ASoundListEditor.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/radiocampus/assets/src/components/ASoundListEditor.vue b/radiocampus/assets/src/components/ASoundListEditor.vue index 8a8b49a..5c80a50 100644 --- a/radiocampus/assets/src/components/ASoundListEditor.vue +++ b/radiocampus/assets/src/components/ASoundListEditor.vue @@ -24,7 +24,9 @@ + :action-add="actionAdd" + :action-remove="actionRemove" + > @@ -78,6 +81,12 @@ export default { } this.$refs.formset.set.push(data) }, + + actionRemove(row, item) { + var ckbox = document.getElementById(item.data.delete_attr_name); + ckbox.checked = true; + ckbox.parentNode.parentNode.style["display"] = "none"; + }, }, }