From 4459d411e6cb923ea26a39649011b9bd006cdc33 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Tue, 18 Feb 2020 20:49:27 +0100 Subject: Fix updateAttachmentDeletionClass for new file row --- assets/interactive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/interactive.js b/assets/interactive.js index 404cc26..39535b5 100644 --- a/assets/interactive.js +++ b/assets/interactive.js @@ -293,7 +293,7 @@ $(function () { function updateAttachmentDeletionClass(tr) { tr = $(tr); - tr.toggleClass("delete", tr.find(".attachment-delete-checkbox")[0].checked); + tr.toggleClass("delete", tr.find(".attachment-delete-checkbox").eq(0).prop("checked")); } function attachmentDeleteCheckbox(tr) { -- cgit v1.2.3-70-g09d2