summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/blogs
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/blogs')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/HubView.js1
-rwxr-xr-xStoneIsland/www/js/lib/blogs/StoryView.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js
index b072a887..c12e656f 100755
--- a/StoneIsland/www/js/lib/blogs/HubView.js
+++ b/StoneIsland/www/js/lib/blogs/HubView.js
@@ -71,6 +71,7 @@ var HubView = ScrollableView.extend({
row.image.forEach(function(img){
var el = document.createElement("div")
el.style.backgroundImage = "url(" + img.uri + ")"
+ el.setAttribute('aria-label', img.caption)
el.className = "item"
$gallery.append(el)
})
diff --git a/StoneIsland/www/js/lib/blogs/StoryView.js b/StoneIsland/www/js/lib/blogs/StoryView.js
index 7dcf8cd6..9ba17343 100755
--- a/StoneIsland/www/js/lib/blogs/StoryView.js
+++ b/StoneIsland/www/js/lib/blogs/StoryView.js
@@ -67,7 +67,7 @@ var StoryView = ScrollableView.extend({
this.$img.stop().fadeTo(110,0.65, function() {
$replace.attr("src", section.image.uri)
- $replace.attr("alt", section.image.description)
+ $replace.attr("alt", section.image.caption)
}).fadeTo(130,1)
}