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
  • Loading branch information
kimisgold committed Mar 10, 2021
1 parent 6e086ff commit c8f04d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/asset/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ var Omeka = {
var row = $(this).closest('.resource-row');
var resourceId = row.find('.resource-id').val();
selector.find('[data-resource-id="' + resourceId + '"]').removeClass('added');
updateSiteCount(resourceId);
row.remove();
updateSiteCount(resourceId);
if ($('.resource-row').length < 1) {
table.addClass('empty');
}
Expand Down

0 comments on commit c8f04d0

Please sign in to comment.