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"; + }, }, }