Skip to content

Commit

Permalink
Merge pull request #955 from girder/harden-item-list
Browse files Browse the repository at this point in the history
Harden adding images to the item list.
  • Loading branch information
manthey authored Sep 1, 2022
2 parents cf4c175 + 99ed199 commit 9ea10f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
- Reduce rest calls to get settings ([953](../../pull/953))
- Add an endpoint to delete all annotations in a folder ([954](../../pull/954))

### Bug Fixes
- Harden adding images to the item list ([955](../../pull/955))

## 1.16.2

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion girder/girder_large_image/web_client/views/itemList.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ wrap(ItemListWidget, 'render', function (render) {
});
}
var inner = $('<span>').html($('a[g-item-cid="' + item.cid + '"]').html());
$('a[g-item-cid="' + item.cid + '"]', parent).empty().append(elem, inner);
$('a[g-item-cid="' + item.cid + '"]', parent).first().empty().append(elem, inner);
_loadMoreImages(parent);
});
}
Expand Down

0 comments on commit 9ea10f9

Please sign in to comment.