Skip to content

Commit

Permalink
community logo: fix rendering a placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored and kpsherva committed Oct 26, 2023
1 parent 4e70759 commit 9675e55
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ import "./truncate.js";
import "semantic-ui-css/semantic.js";
import "semantic-ui-less/semantic.less";

// Add placeholder image if image not found
jquery("img.has-placeholder").each(function() {
const $image = jquery(this);

if(this.naturalHeight === 0) {
$image.attr("src", "/static/images/square-placeholder.png");
}
})

// Initialize Semantic UI components
jquery(".ui.dropdown").dropdown({
onShow: function() {
Expand Down

0 comments on commit 9675e55

Please sign in to comment.