summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-11-08 11:45:27 -0500
committerJules Laplace <jules@okfoc.us>2016-11-08 11:45:27 -0500
commit7773d1d0686de69504e9b820efdb3e94d72eff04 (patch)
tree6bbfaf3232466c52cb29197b95e791a552c1abfe /StoneIsland/www/js/lib/products
parentf0f43ac073226da65475560c05964c6993540c54 (diff)
parent936dac0d53696d48c8e24998731c3440022207ca (diff)
merge
Diffstat (limited to 'StoneIsland/www/js/lib/products')
-rwxr-xr-xStoneIsland/www/js/lib/products/CollectionView.js4
-rwxr-xr-xStoneIsland/www/js/lib/products/ProductView.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/StoneIsland/www/js/lib/products/CollectionView.js b/StoneIsland/www/js/lib/products/CollectionView.js
index 55f3b080..8be650c5 100755
--- a/StoneIsland/www/js/lib/products/CollectionView.js
+++ b/StoneIsland/www/js/lib/products/CollectionView.js
@@ -33,7 +33,7 @@ var CollectionView = ScrollableView.extend({
if (sdk.env !== "test" && app.closed.storeIsClosed) {
return app.closed.show()
}
- if (this.data && this.data.SearchResponseFull.Results.Items.length == 1) {
+ if (this.data && this.data.SearchResponseFull.Results.Items.length < 4) {
app.footer.hide()
}
else {
@@ -91,7 +91,7 @@ var CollectionView = ScrollableView.extend({
this.$content.empty()
// DefaultCode10
// data.SearchResponseFull.Results.Items.length = 1
- var is_single_product = (data.SearchResponseFull.Results.Items.length == 1)
+ var is_single_product = (data.SearchResponseFull.Results.Items.length < 4)
this.$content.toggleClass("single", is_single_product)
if (is_single_product) {
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js
index 390d2f6a..683d079d 100755
--- a/StoneIsland/www/js/lib/products/ProductView.js
+++ b/StoneIsland/www/js/lib/products/ProductView.js
@@ -121,7 +121,7 @@ var ProductView = ScrollableView.extend({
var type = title_case( data['MicroCategory'] )
var price = "$" + data['DiscountedPrice'] + ".00"
var body = descriptions['Details'] + "<br>" + descriptions['EditorialDescription']
- body = body.replace(/<br>/g, "<br><br>")
+ body = body.replace(/<br>/g, "<br><br>").replace(/(<br>)+$/, "")
var default_color_id = this.populate_selectors(data, details)
@@ -475,4 +475,4 @@ ModelFabric: "631520081CC-6315-81"
ModelNames: "20081 DATA DRIP PIN"
Neckline: "Claudine or round collar"
-*/ \ No newline at end of file
+*/