Add ALT tags to images for accessibility. Fixes #2902

This commit is contained in:
Murtuza Zabuawala
2018-01-08 12:43:36 +00:00
committed by Dave Page
parent 89821c0d19
commit aec86970f2
11 changed files with 35 additions and 20 deletions

View File

@@ -534,7 +534,7 @@ var getFolderInfo = function(path, file_type) {
// Display an activity indicator.
$('.fileinfo').find('span.activity').html(
'<img src="' + loading_icon_url + '"/>'
'<img src="' + loading_icon_url + '" alt="' + gettext("Loading...") + '"/>'
);
var post_data = {

View File

@@ -37,7 +37,8 @@
</div>
<div class="fileinfo">
<span class="activity">
<img src="{{ url_for('static', filename='js/generated/img/load-root.gif') }}">
<img src="{{ url_for('static', filename='js/generated/img/load-root.gif') }}"
alt="{{ _('Loading...') }}">
</span>
<div class="file_listing"></div>
<div class="upload_file dropzone"></div>