Fix accessibility.
This commit is contained in:
parent
3fec600cba
commit
980053c717
|
@ -445,7 +445,9 @@ window.GalleryTheater = function() {
|
||||||
} else {
|
} else {
|
||||||
img = imageContainer.find(".gal-active");
|
img = imageContainer.find(".gal-active");
|
||||||
if (selectedFromStrip) {
|
if (selectedFromStrip) {
|
||||||
imageContainer.find(".gal-" + direction).attr("src", currentPic.image.file.theater.url);
|
img = imageContainer.find(".gal-" + direction);
|
||||||
|
img.attr("src", currentPic.image.file.theater.url);
|
||||||
|
img.attr("alt", currentPic.image.alt_title);
|
||||||
}
|
}
|
||||||
if (direction == "next") {
|
if (direction == "next") {
|
||||||
imageContainer.find(".gal-prev").remove();
|
imageContainer.find(".gal-prev").remove();
|
||||||
|
@ -527,6 +529,7 @@ window.GalleryTheater = function() {
|
||||||
var obj = albumData.images[currentPic.index + 1],
|
var obj = albumData.images[currentPic.index + 1],
|
||||||
nextImg = $("<img class='gallery-image gal-next gal-inactive'>");
|
nextImg = $("<img class='gallery-image gal-next gal-inactive'>");
|
||||||
nextImg.attr("src", obj.file.theater.url);
|
nextImg.attr("src", obj.file.theater.url);
|
||||||
|
nextImg.attr("alt", obj.alt_title);
|
||||||
nextImg.hide();
|
nextImg.hide();
|
||||||
imageContainer.append(nextImg);
|
imageContainer.append(nextImg);
|
||||||
nextImg.on("load", function() {
|
nextImg.on("load", function() {
|
||||||
|
@ -545,6 +548,7 @@ window.GalleryTheater = function() {
|
||||||
var obj = albumData.images[currentPic.index - 1],
|
var obj = albumData.images[currentPic.index - 1],
|
||||||
prevImg = $("<img class='gallery-image gal-prev gal-inactive'>");
|
prevImg = $("<img class='gallery-image gal-prev gal-inactive'>");
|
||||||
prevImg.attr("src", obj.file.theater.url);
|
prevImg.attr("src", obj.file.theater.url);
|
||||||
|
prevImg.attr("alt", obj.alt_title);
|
||||||
prevImg.hide();
|
prevImg.hide();
|
||||||
imageContainer.prepend(prevImg);
|
imageContainer.prepend(prevImg);
|
||||||
prevImg.on("load", function() {
|
prevImg.on("load", function() {
|
||||||
|
|
Loading…
Reference in New Issue