Skip to content

Commit

Permalink
accidentally dropped hide
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Jul 18, 2024
1 parent 816d221 commit b25241c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/people.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function expandPeople() {
//If found, construct the HTML for display
var name = person.name['family-name'].value + ", " + person.name['given-names'].value;
var displayElement = $('<a/>').attr('href', 'https://orcid.org/' + id).attr('target', '_blank').attr('rel', 'noopener').html(name + ' <img alt="ORCID logo" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="16" height="16" />');
$(personElement).hide();
let sibs = $(personElement).siblings("[data-cvoc-index='" + $(personElement).attr('data-cvoc-index') + "']");
if(sibs.length==0) {
displayElement.prependTo($(personElement).parent());
Expand Down

0 comments on commit b25241c

Please sign in to comment.