summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-01 00:27:10 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-01 00:27:10 +0200
commit461fb1258a2ba96d99d9cdb4e1956492f4c9fe7f (patch)
treeee41c162cb93886442aed1e56e9a7beb38b2d416
parent01c49d563033d586a06569ed5503e183a524a552 (diff)
fits large alt text
-rwxr-xr-xStoneIsland/www/js/lib/blogs/BlogView.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/blogs/BlogView.js b/StoneIsland/www/js/lib/blogs/BlogView.js
index 6eea977f..55320e7c 100755
--- a/StoneIsland/www/js/lib/blogs/BlogView.js
+++ b/StoneIsland/www/js/lib/blogs/BlogView.js
@@ -97,6 +97,11 @@ var BlogView = View.extend({
app.store.FittingCodes.split("\n").forEach(function(code){
app.product.fitLargeCodes[code] = true
})
+ if (app.store.FitsLarge === 'use_alt_text' && (app.store.FitsLargeText || "").length) {
+ var fit_lines = app.store.FitsLargeText.split('\n').replace(/</g, "&lt;").replace(/>/g, "&rt;").join("<br>")
+ $('.fit').html(fit_lines)
+ $('.fit').addClass('altText')
+ }
}
if (app.store.BackgroundIsGray === "true") {