summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasilij Schneidermann <mail@vasilij.de>2020-05-08 17:45:30 +0200
committerCalum Lind <calumlind+deluge@gmail.com>2021-01-29 18:49:24 +0000
commit6d9dc9bd424ab59b6c3128eddb6850ba9eb9687d (patch)
tree7b9c05a82e6ee23499abc4d093eb8cb2892f2f27
parent937afd921c09ffa95b1df0f96cdf0ca4524d8444 (diff)
downloaddeluge-6d9dc9bd424ab59b6c3128eddb6850ba9eb9687d.zip
deluge-6d9dc9bd424ab59b6c3128eddb6850ba9eb9687d.tar.gz
deluge-6d9dc9bd424ab59b6c3128eddb6850ba9eb9687d.tar.bz2
[WebUI] Add country flag alt/title for accessibility
This allows viewing the country in textual form by hovering the flag image and displays it if the image couldn't be loaded.
-rw-r--r--deluge/ui/web/js/deluge-all/details/PeersTab.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/web/js/deluge-all/details/PeersTab.js b/deluge/ui/web/js/deluge-all/details/PeersTab.js
index b86d3a3..66d4a4b 100644
--- a/deluge/ui/web/js/deluge-all/details/PeersTab.js
+++ b/deluge/ui/web/js/deluge-all/details/PeersTab.js
@@ -14,7 +14,7 @@
return '';
}
return String.format(
- '<img src="{0}flag/{1}" />',
+ '<img alt="{1}" title="{1}" src="{0}flag/{1}" />',
deluge.config.base,
value
);