summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-11 19:27:19 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-11 19:27:19 +0200
commit997d410746c5fc5e71049a4cc546ec1ff0344c29 (patch)
tree19e18b7d82af274f6225e93fa9fe595fb65ee2c0
parent73943b1dfaeec6b92c0f178c944b8e62abc8df0b (diff)
nesting
-rwxr-xr-xStoneIsland/www/js/lib/products/ProductView.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js
index 0ad58acc..3bcf5ee4 100755
--- a/StoneIsland/www/js/lib/products/ProductView.js
+++ b/StoneIsland/www/js/lib/products/ProductView.js
@@ -217,18 +217,19 @@ var ProductView = ScrollableView.extend({
else {
this.$fitHeader.hide()
}
+
this.$fit.show()
+
+ if (app.store.SizingFooter === 'use_alt_text' && (app.store.SizingFooterText || "").length) {
+ var sizing_lines = app.store.SizingFooterText.replace(/</g, "&lt;").replace(/>/g, "&rt;").split('\n').join("<br>")
+ this.$sizing.html(sizing_lines)
+ this.$sizing.show()
+ } else if (app.store.SizingFooter === 'true') {
+ this.$sizing.show()
+ }
} else {
this.$fitHeader.hide()
this.$fit.hide()
- }
-
- if (app.store.SizingFooter === 'use_alt_text' && (app.store.SizingFooterText || "").length) {
- var sizing_lines = app.store.SizingFooterText.replace(/</g, "&lt;").replace(/>/g, "&rt;").split('\n').join("<br>")
- this.$sizing.html(sizing_lines)
- this.$sizing.show()
- }
- else {
this.$sizing.hide()
}