Skip to content
Snippets Groups Projects
Commit ef6f0e8f authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "Avatare haben kein alt-Attribut im Image-Tag"

Closes #4014

Merge request studip/studip!2862
parent 21ccc143
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ const GlobalSearch = { ...@@ -111,7 +111,7 @@ const GlobalSearch = {
// Optional image... // Optional image...
if (result.img !== null) { if (result.img !== null) {
$(`<img src="${result.img}">`) $(`<img src="${result.img}" alt="">`)
.wrap('<div class="globalsearch-result-img">') .wrap('<div class="globalsearch-result-img">')
.parent() // Element is now the wrapper .parent() // Element is now the wrapper
.appendTo(link); .appendTo(link);
......
...@@ -200,7 +200,7 @@ const Search = { ...@@ -200,7 +200,7 @@ const Search = {
// Optional image... // Optional image...
if (result.img !== null) { if (result.img !== null) {
$('<div class="search-result-img hidden-tiny-down">') $('<div class="search-result-img hidden-tiny-down">')
.append(`<img src="${result.img}">`) .append(`<img src="${result.img}" alt="">`)
.appendTo(link); .appendTo(link);
} }
......
<template> <template>
<img :src="url" <img :src="url"
:width="width"> :width="width" alt="">
</template> </template>
<script> <script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment