From d018c720fb060b377aa8ed2f83476275cf35a597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20B=C3=B6ttcher?= <c.boettcher@fz-juelich.de> Date: Tue, 22 Aug 2023 10:37:03 +0200 Subject: [PATCH] fix collection of bulk delete ids --- frontend/js/apicalls.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/js/apicalls.js b/frontend/js/apicalls.js index a4f074b..f3443a3 100644 --- a/frontend/js/apicalls.js +++ b/frontend/js/apicalls.js @@ -128,8 +128,9 @@ function getMetadataPropertyHTMLString(property, value, readonly=true) { function collectDeleteOIDs() { var oids = []; $('.bulk-delete-checkboxes').each( function() { - var oid = this.id; - oids.push(oid) + if (this.checked) { + oids[oids.length] = this.id + } }); return oids; } -- GitLab