diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-01 00:27:10 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-01 00:27:10 +0200 |
| commit | 461fb1258a2ba96d99d9cdb4e1956492f4c9fe7f (patch) | |
| tree | ee41c162cb93886442aed1e56e9a7beb38b2d416 | |
| parent | 01c49d563033d586a06569ed5503e183a524a552 (diff) | |
fits large alt text
| -rwxr-xr-x | StoneIsland/www/js/lib/blogs/BlogView.js | 5 |
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, "<").replace(/>/g, "&rt;").join("<br>") + $('.fit').html(fit_lines) + $('.fit').addClass('altText') + } } if (app.store.BackgroundIsGray === "true") { |
