Skip to content

Commit 2917e05

Browse files
community logo: fix rendering a placeholder
* closes https://github.com/zenodo/rdm-project/issues/433
1 parent 4e70759 commit 2917e05

File tree

1 file changed

+0
-9
lines changed
  • invenio_theme/assets/semantic-ui/js/invenio_theme

1 file changed

+0
-9
lines changed

invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ import "./truncate.js";
1212
import "semantic-ui-css/semantic.js";
1313
import "semantic-ui-less/semantic.less";
1414

15-
// Add placeholder image if image not found
16-
jquery("img.has-placeholder").each(function() {
17-
const $image = jquery(this);
18-
19-
if(this.naturalHeight === 0) {
20-
$image.attr("src", "/static/images/square-placeholder.png");
21-
}
22-
})
23-
2415
// Initialize Semantic UI components
2516
jquery(".ui.dropdown").dropdown({
2617
onShow: function() {

0 commit comments

Comments
 (0)