fix sonar findings and translation structure
This commit is contained in:
@@ -41,10 +41,10 @@
|
||||
const image = images[index];
|
||||
$('#slide-image')
|
||||
.attr('src', mediaUrl(image.url))
|
||||
.attr('alt', image.caption || ns.I18n.t("slideshow.bild.zur.station"))
|
||||
.attr('alt', image.caption || ns.I18n.t("slideshow.image-label"))
|
||||
.off('error.wegwichtel')
|
||||
.on('error.wegwichtel', function () {
|
||||
$(this).removeAttr('src').attr('alt', ns.I18n.t("slideshow.bild.konnte.nicht.geladen.werden"));
|
||||
$(this).removeAttr('src').attr('alt', ns.I18n.t("slideshow.error.load-image"));
|
||||
});
|
||||
$('#slide-caption').text(image.caption || '');
|
||||
$('#slide-position').text(`${index + 1} / ${images.length}`);
|
||||
|
||||
Reference in New Issue
Block a user