Skip to content

Commit

Permalink
Remove resource row from table before updating site count.
Browse files Browse the repository at this point in the history
(restoring c8f04d0)
  • Loading branch information
zerocrates committed May 19, 2022
1 parent 0c93db0 commit 2a75228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/asset/js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ var Omeka = {
var row = $(this).closest('.resource-row');
var resourceId = row.find('.resource-id').val();
selector.find('[data-resource-id="' + resourceId + '"]').removeClass('added');
updateResourceCount(resourceId);
row.remove();
updateResourceCount(resourceId);
if ($('.resource-row').length < 1) {
table.addClass('empty');
}
Expand Down

0 comments on commit 2a75228

Please sign in to comment.