Fix jcrop holder image having no alt tag

This commit is contained in:
Thibaud Colas 2019-07-27 21:22:45 -04:00
parent cc85d42fbd
commit 73f4047809

View file

@ -24,6 +24,10 @@ function setupJcrop(image, original, focalPointOriginal, fields) {
}
}, function() {
jcropapi = this
// Set alt="" on the image so its src is not read out loud to screen reader users.
var $holderImage = $('img', jcropapi.ui.holder);
$holderImage.attr('alt', '');
});
}