From 9675e5595b80ff15309747cb1e03a082e2e32a69 Mon Sep 17 00:00:00 2001 From: anikachurilova Date: Wed, 25 Oct 2023 18:08:55 +0200 Subject: [PATCH] community logo: fix rendering a placeholder * closes https://github.com/zenodo/rdm-project/issues/433 --- .../assets/semantic-ui/js/invenio_theme/theme.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js b/invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js index a2398720..25e9f50b 100644 --- a/invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js +++ b/invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js @@ -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() {