summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/products')
-rw-r--r--StoneIsland/www/js/lib/products/ClosedStoreView.js9
-rw-r--r--StoneIsland/www/js/lib/products/CollectionView.js1
2 files changed, 10 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/products/ClosedStoreView.js b/StoneIsland/www/js/lib/products/ClosedStoreView.js
index 77dc15b1..5f8c1e84 100644
--- a/StoneIsland/www/js/lib/products/ClosedStoreView.js
+++ b/StoneIsland/www/js/lib/products/ClosedStoreView.js
@@ -21,6 +21,15 @@ var ClosedStoreView = View.extend({
document.body.className = "closed"
this.animate()
app.footer.hide()
+ console.log(this)
+ if (this.storeOpenDate) {
+ var date = moment(this.storeOpenDate).format("MM/DD")
+ console.log(date)
+ $(".closed_store_msg h3").html("THIS STORE WILL OPEN ON " + date)
+ }
+ else {
+ $(".closed_store_msg h3").html("THIS STORE IS CURRENTLY CLOSED")
+ }
},
hide: function(){
diff --git a/StoneIsland/www/js/lib/products/CollectionView.js b/StoneIsland/www/js/lib/products/CollectionView.js
index 056f2a52..d4315514 100644
--- a/StoneIsland/www/js/lib/products/CollectionView.js
+++ b/StoneIsland/www/js/lib/products/CollectionView.js
@@ -26,6 +26,7 @@ var CollectionView = ScrollableView.extend({
show: function(){
if (app.closed.storeIsClosed) {
+ // (! this.storeOpenDate || moment().diff(this.storeOpenDate) > 0 ) ) {
return app.closed.show()
}
app.footer.show("FILTER")