From 32aa98bb77c5ea0773e054b79b38f23deb76d90c Mon Sep 17 00:00:00 2001 From: Jim Safley Date: Fri, 10 May 2024 16:25:13 -0400 Subject: [PATCH] Remove class and trigger off the correct element --- application/asset/js/global.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/asset/js/global.js b/application/asset/js/global.js index 97db7c2e8..71f7d53e8 100644 --- a/application/asset/js/global.js +++ b/application/asset/js/global.js @@ -227,7 +227,8 @@ var Omeka = { tableRowCell.text(tableRowValue); }); selectorRow.addClass('added'); - table.children('.resource-rows').append(tableRow).removeClass('empty').trigger('appendRow'); + table.children('.resource-rows').append(tableRow); + table.removeClass('empty').trigger('appendRow'); updateResourceCount(id); }